FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lambda2/jQuery-utils.js at master · Web-Dev-Collaborative/lambda2 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
Web-Dev-Collaborative
/
lambda2
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
25
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lambda2
/
jQuery-utils.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 760 Bytes
Breadcrumbs
lambda2
/
jQuery-utils.js
Copy path
File metadata and controls
13 lines (11 loc) · 760 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
{
/* <script language="javascript" type="text/javascript"> */
}
$
(
function
(
)
{
$
(
'a'
)
.
click
(
function
(
)
{
var
originalSize
=
$
(
'p'
)
.
css
(
'font-size'
)
;
// get the font size
var
number
=
parseFloat
(
originalSize
,
10
)
;
// that method will chop off any integer from the specified variable "originalSize"
var
unitOfMeasure
=
originalSize
.
slice
(
-
2
)
;
// store the unit of measure, Pixle or Inch
$
(
'p'
)
.
css
(
'font-size'
,
number
/
1.2
+
unitOfMeasure
)
;
if
(
this
.
id
==
'larger'
)
{
$
(
'p'
)
.
css
(
'font-size'
,
number
*
1.2
+
unitOfMeasure
)
;
}
// figure out which element is triggered
}
)
;
}
)
;
//----------------------------------------------------------------------------------
Back
|
FazBrowse Home
|
New Git URL