code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* iCheck plugin Minimal skin, black ----------------------------------- */ .icheckbox_minimal, .iradio_minimal { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(minimal.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal { background-position: 0 0; } .icheckbox_minimal.hover { background-position: -20px 0; } .icheckbox_minimal.checked { background-position: -40px 0; } .icheckbox_minimal.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal.checked.disabled { background-position: -80px 0; } .iradio_minimal { background-position: -100px 0; } .iradio_minimal.hover { background-position: -120px 0; } .iradio_minimal.checked { background-position: -140px 0; } .iradio_minimal.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal, .iradio_minimal { background-image: url(minimal@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/minimal.css
CSS
asf20
1,506
/* iCheck plugin Minimal skin, aero ----------------------------------- */ .icheckbox_minimal-aero, .iradio_minimal-aero { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-aero { background-position: 0 0; } .icheckbox_minimal-aero.hover { background-position: -20px 0; } .icheckbox_minimal-aero.checked { background-position: -40px 0; } .icheckbox_minimal-aero.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-aero.checked.disabled { background-position: -80px 0; } .iradio_minimal-aero { background-position: -100px 0; } .iradio_minimal-aero.hover { background-position: -120px 0; } .iradio_minimal-aero.checked { background-position: -140px 0; } .iradio_minimal-aero.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-aero.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-aero, .iradio_minimal-aero { background-image: url(aero@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/aero.css
CSS
asf20
1,569
/* iCheck plugin Minimal skin ----------------------------------- */ .icheckbox_minimal, .iradio_minimal { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(minimal.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal { background-position: 0 0; } .icheckbox_minimal.hover { background-position: -20px 0; } .icheckbox_minimal.checked { background-position: -40px 0; } .icheckbox_minimal.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal.checked.disabled { background-position: -80px 0; } .iradio_minimal { background-position: -100px 0; } .iradio_minimal.hover { background-position: -120px 0; } .iradio_minimal.checked { background-position: -140px 0; } .iradio_minimal.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal, .iradio_minimal { background-image: url(minimal@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* red */ .icheckbox_minimal-red, .iradio_minimal-red { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-red { background-position: 0 0; } .icheckbox_minimal-red.hover { background-position: -20px 0; } .icheckbox_minimal-red.checked { background-position: -40px 0; } .icheckbox_minimal-red.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-red.checked.disabled { background-position: -80px 0; } .iradio_minimal-red { background-position: -100px 0; } .iradio_minimal-red.hover { background-position: -120px 0; } .iradio_minimal-red.checked { background-position: -140px 0; } .iradio_minimal-red.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-red.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-red, .iradio_minimal-red { background-image: url(red@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* green */ .icheckbox_minimal-green, .iradio_minimal-green { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-green { background-position: 0 0; } .icheckbox_minimal-green.hover { background-position: -20px 0; } .icheckbox_minimal-green.checked { background-position: -40px 0; } .icheckbox_minimal-green.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-green.checked.disabled { background-position: -80px 0; } .iradio_minimal-green { background-position: -100px 0; } .iradio_minimal-green.hover { background-position: -120px 0; } .iradio_minimal-green.checked { background-position: -140px 0; } .iradio_minimal-green.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-green.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-green, .iradio_minimal-green { background-image: url(green@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* blue */ .icheckbox_minimal-blue, .iradio_minimal-blue { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-blue { background-position: 0 0; } .icheckbox_minimal-blue.hover { background-position: -20px 0; } .icheckbox_minimal-blue.checked { background-position: -40px 0; } .icheckbox_minimal-blue.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-blue.checked.disabled { background-position: -80px 0; } .iradio_minimal-blue { background-position: -100px 0; } .iradio_minimal-blue.hover { background-position: -120px 0; } .iradio_minimal-blue.checked { background-position: -140px 0; } .iradio_minimal-blue.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-blue.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-blue, .iradio_minimal-blue { background-image: url(blue@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* aero */ .icheckbox_minimal-aero, .iradio_minimal-aero { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-aero { background-position: 0 0; } .icheckbox_minimal-aero.hover { background-position: -20px 0; } .icheckbox_minimal-aero.checked { background-position: -40px 0; } .icheckbox_minimal-aero.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-aero.checked.disabled { background-position: -80px 0; } .iradio_minimal-aero { background-position: -100px 0; } .iradio_minimal-aero.hover { background-position: -120px 0; } .iradio_minimal-aero.checked { background-position: -140px 0; } .iradio_minimal-aero.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-aero.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-aero, .iradio_minimal-aero { background-image: url(aero@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* grey */ .icheckbox_minimal-grey, .iradio_minimal-grey { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-grey { background-position: 0 0; } .icheckbox_minimal-grey.hover { background-position: -20px 0; } .icheckbox_minimal-grey.checked { background-position: -40px 0; } .icheckbox_minimal-grey.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-grey.checked.disabled { background-position: -80px 0; } .iradio_minimal-grey { background-position: -100px 0; } .iradio_minimal-grey.hover { background-position: -120px 0; } .iradio_minimal-grey.checked { background-position: -140px 0; } .iradio_minimal-grey.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-grey.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-grey, .iradio_minimal-grey { background-image: url(grey@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* orange */ .icheckbox_minimal-orange, .iradio_minimal-orange { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-orange { background-position: 0 0; } .icheckbox_minimal-orange.hover { background-position: -20px 0; } .icheckbox_minimal-orange.checked { background-position: -40px 0; } .icheckbox_minimal-orange.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-orange.checked.disabled { background-position: -80px 0; } .iradio_minimal-orange { background-position: -100px 0; } .iradio_minimal-orange.hover { background-position: -120px 0; } .iradio_minimal-orange.checked { background-position: -140px 0; } .iradio_minimal-orange.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-orange.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-orange, .iradio_minimal-orange { background-image: url(orange@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* yellow */ .icheckbox_minimal-yellow, .iradio_minimal-yellow { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-yellow { background-position: 0 0; } .icheckbox_minimal-yellow.hover { background-position: -20px 0; } .icheckbox_minimal-yellow.checked { background-position: -40px 0; } .icheckbox_minimal-yellow.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-yellow.checked.disabled { background-position: -80px 0; } .iradio_minimal-yellow { background-position: -100px 0; } .iradio_minimal-yellow.hover { background-position: -120px 0; } .iradio_minimal-yellow.checked { background-position: -140px 0; } .iradio_minimal-yellow.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-yellow.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-yellow, .iradio_minimal-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* pink */ .icheckbox_minimal-pink, .iradio_minimal-pink { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-pink { background-position: 0 0; } .icheckbox_minimal-pink.hover { background-position: -20px 0; } .icheckbox_minimal-pink.checked { background-position: -40px 0; } .icheckbox_minimal-pink.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-pink.checked.disabled { background-position: -80px 0; } .iradio_minimal-pink { background-position: -100px 0; } .iradio_minimal-pink.hover { background-position: -120px 0; } .iradio_minimal-pink.checked { background-position: -140px 0; } .iradio_minimal-pink.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-pink.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-pink, .iradio_minimal-pink { background-image: url(pink@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } } /* purple */ .icheckbox_minimal-purple, .iradio_minimal-purple { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-purple { background-position: 0 0; } .icheckbox_minimal-purple.hover { background-position: -20px 0; } .icheckbox_minimal-purple.checked { background-position: -40px 0; } .icheckbox_minimal-purple.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-purple.checked.disabled { background-position: -80px 0; } .iradio_minimal-purple { background-position: -100px 0; } .iradio_minimal-purple.hover { background-position: -120px 0; } .iradio_minimal-purple.checked { background-position: -140px 0; } .iradio_minimal-purple.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-purple.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-purple, .iradio_minimal-purple { background-image: url(purple@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/_all.css
CSS
asf20
15,164
/* iCheck plugin Minimal skin, orange ----------------------------------- */ .icheckbox_minimal-orange, .iradio_minimal-orange { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-orange { background-position: 0 0; } .icheckbox_minimal-orange.hover { background-position: -20px 0; } .icheckbox_minimal-orange.checked { background-position: -40px 0; } .icheckbox_minimal-orange.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-orange.checked.disabled { background-position: -80px 0; } .iradio_minimal-orange { background-position: -100px 0; } .iradio_minimal-orange.hover { background-position: -120px 0; } .iradio_minimal-orange.checked { background-position: -140px 0; } .iradio_minimal-orange.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-orange.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-orange, .iradio_minimal-orange { background-image: url(orange@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/orange.css
CSS
asf20
1,603
/* iCheck plugin Minimal skin, grey ----------------------------------- */ .icheckbox_minimal-grey, .iradio_minimal-grey { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-grey { background-position: 0 0; } .icheckbox_minimal-grey.hover { background-position: -20px 0; } .icheckbox_minimal-grey.checked { background-position: -40px 0; } .icheckbox_minimal-grey.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-grey.checked.disabled { background-position: -80px 0; } .iradio_minimal-grey { background-position: -100px 0; } .iradio_minimal-grey.hover { background-position: -120px 0; } .iradio_minimal-grey.checked { background-position: -140px 0; } .iradio_minimal-grey.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-grey.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-grey, .iradio_minimal-grey { background-image: url(grey@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/grey.css
CSS
asf20
1,569
/* iCheck plugin Minimal skin, yellow ----------------------------------- */ .icheckbox_minimal-yellow, .iradio_minimal-yellow { display: block; margin: 0; padding: 0; width: 18px; height: 18px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_minimal-yellow { background-position: 0 0; } .icheckbox_minimal-yellow.hover { background-position: -20px 0; } .icheckbox_minimal-yellow.checked { background-position: -40px 0; } .icheckbox_minimal-yellow.disabled { background-position: -60px 0; cursor: default; } .icheckbox_minimal-yellow.checked.disabled { background-position: -80px 0; } .iradio_minimal-yellow { background-position: -100px 0; } .iradio_minimal-yellow.hover { background-position: -120px 0; } .iradio_minimal-yellow.checked { background-position: -140px 0; } .iradio_minimal-yellow.disabled { background-position: -160px 0; cursor: default; } .iradio_minimal-yellow.checked.disabled { background-position: -180px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_minimal-yellow, .iradio_minimal-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 200px 20px; background-size: 200px 20px; } }
0x6a
trunk/libraries/icheck/skins/minimal/yellow.css
CSS
asf20
1,603
/* iCheck plugin Flat skin, green ----------------------------------- */ .icheckbox_flat-green, .iradio_flat-green { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-green { background-position: 0 0; } .icheckbox_flat-green.checked { background-position: -22px 0; } .icheckbox_flat-green.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-green.checked.disabled { background-position: -66px 0; } .iradio_flat-green { background-position: -88px 0; } .iradio_flat-green.checked { background-position: -110px 0; } .iradio_flat-green.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-green.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-green, .iradio_flat-green { background-image: url(green@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/green.css
CSS
asf20
1,386
/* iCheck plugin Flat skin, red ----------------------------------- */ .icheckbox_flat-red, .iradio_flat-red { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-red { background-position: 0 0; } .icheckbox_flat-red.checked { background-position: -22px 0; } .icheckbox_flat-red.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-red.checked.disabled { background-position: -66px 0; } .iradio_flat-red { background-position: -88px 0; } .iradio_flat-red.checked { background-position: -110px 0; } .iradio_flat-red.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-red.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-red, .iradio_flat-red { background-image: url(red@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/red.css
CSS
asf20
1,356
/* iCheck plugin Flat skin, pink ----------------------------------- */ .icheckbox_flat-pink, .iradio_flat-pink { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-pink { background-position: 0 0; } .icheckbox_flat-pink.checked { background-position: -22px 0; } .icheckbox_flat-pink.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-pink.checked.disabled { background-position: -66px 0; } .iradio_flat-pink { background-position: -88px 0; } .iradio_flat-pink.checked { background-position: -110px 0; } .iradio_flat-pink.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-pink.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-pink, .iradio_flat-pink { background-image: url(pink@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/pink.css
CSS
asf20
1,371
/* iCheck plugin flat skin, black ----------------------------------- */ .icheckbox_flat, .iradio_flat { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(flat.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat { background-position: 0 0; } .icheckbox_flat.checked { background-position: -22px 0; } .icheckbox_flat.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat.checked.disabled { background-position: -66px 0; } .iradio_flat { background-position: -88px 0; } .iradio_flat.checked { background-position: -110px 0; } .iradio_flat.disabled { background-position: -132px 0; cursor: default; } .iradio_flat.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat, .iradio_flat { background-image: url(flat@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/flat.css
CSS
asf20
1,312
/* iCheck plugin Flat skin, blue ----------------------------------- */ .icheckbox_flat-blue, .iradio_flat-blue { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-blue { background-position: 0 0; } .icheckbox_flat-blue.checked { background-position: -22px 0; } .icheckbox_flat-blue.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-blue.checked.disabled { background-position: -66px 0; } .iradio_flat-blue { background-position: -88px 0; } .iradio_flat-blue.checked { background-position: -110px 0; } .iradio_flat-blue.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-blue.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-blue, .iradio_flat-blue { background-image: url(blue@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/blue.css
CSS
asf20
1,371
/* iCheck plugin Flat skin, purple ----------------------------------- */ .icheckbox_flat-purple, .iradio_flat-purple { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-purple { background-position: 0 0; } .icheckbox_flat-purple.checked { background-position: -22px 0; } .icheckbox_flat-purple.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-purple.checked.disabled { background-position: -66px 0; } .iradio_flat-purple { background-position: -88px 0; } .iradio_flat-purple.checked { background-position: -110px 0; } .iradio_flat-purple.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-purple.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-purple, .iradio_flat-purple { background-image: url(purple@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/purple.css
CSS
asf20
1,401
/* iCheck plugin Flat skin, aero ----------------------------------- */ .icheckbox_flat-aero, .iradio_flat-aero { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-aero { background-position: 0 0; } .icheckbox_flat-aero.checked { background-position: -22px 0; } .icheckbox_flat-aero.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-aero.checked.disabled { background-position: -66px 0; } .iradio_flat-aero { background-position: -88px 0; } .iradio_flat-aero.checked { background-position: -110px 0; } .iradio_flat-aero.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-aero.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-aero, .iradio_flat-aero { background-image: url(aero@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/aero.css
CSS
asf20
1,371
/* iCheck plugin Flat skin ----------------------------------- */ .icheckbox_flat, .iradio_flat { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(flat.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat { background-position: 0 0; } .icheckbox_flat.checked { background-position: -22px 0; } .icheckbox_flat.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat.checked.disabled { background-position: -66px 0; } .iradio_flat { background-position: -88px 0; } .iradio_flat.checked { background-position: -110px 0; } .iradio_flat.disabled { background-position: -132px 0; cursor: default; } .iradio_flat.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat, .iradio_flat { background-image: url(flat@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* red */ .icheckbox_flat-red, .iradio_flat-red { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-red { background-position: 0 0; } .icheckbox_flat-red.checked { background-position: -22px 0; } .icheckbox_flat-red.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-red.checked.disabled { background-position: -66px 0; } .iradio_flat-red { background-position: -88px 0; } .iradio_flat-red.checked { background-position: -110px 0; } .iradio_flat-red.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-red.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-red, .iradio_flat-red { background-image: url(red@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* green */ .icheckbox_flat-green, .iradio_flat-green { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-green { background-position: 0 0; } .icheckbox_flat-green.checked { background-position: -22px 0; } .icheckbox_flat-green.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-green.checked.disabled { background-position: -66px 0; } .iradio_flat-green { background-position: -88px 0; } .iradio_flat-green.checked { background-position: -110px 0; } .iradio_flat-green.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-green.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-green, .iradio_flat-green { background-image: url(green@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* blue */ .icheckbox_flat-blue, .iradio_flat-blue { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-blue { background-position: 0 0; } .icheckbox_flat-blue.checked { background-position: -22px 0; } .icheckbox_flat-blue.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-blue.checked.disabled { background-position: -66px 0; } .iradio_flat-blue { background-position: -88px 0; } .iradio_flat-blue.checked { background-position: -110px 0; } .iradio_flat-blue.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-blue.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-blue, .iradio_flat-blue { background-image: url(blue@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* aero */ .icheckbox_flat-aero, .iradio_flat-aero { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-aero { background-position: 0 0; } .icheckbox_flat-aero.checked { background-position: -22px 0; } .icheckbox_flat-aero.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-aero.checked.disabled { background-position: -66px 0; } .iradio_flat-aero { background-position: -88px 0; } .iradio_flat-aero.checked { background-position: -110px 0; } .iradio_flat-aero.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-aero.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-aero, .iradio_flat-aero { background-image: url(aero@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* grey */ .icheckbox_flat-grey, .iradio_flat-grey { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-grey { background-position: 0 0; } .icheckbox_flat-grey.checked { background-position: -22px 0; } .icheckbox_flat-grey.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-grey.checked.disabled { background-position: -66px 0; } .iradio_flat-grey { background-position: -88px 0; } .iradio_flat-grey.checked { background-position: -110px 0; } .iradio_flat-grey.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-grey.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-grey, .iradio_flat-grey { background-image: url(grey@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* orange */ .icheckbox_flat-orange, .iradio_flat-orange { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-orange { background-position: 0 0; } .icheckbox_flat-orange.checked { background-position: -22px 0; } .icheckbox_flat-orange.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-orange.checked.disabled { background-position: -66px 0; } .iradio_flat-orange { background-position: -88px 0; } .iradio_flat-orange.checked { background-position: -110px 0; } .iradio_flat-orange.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-orange.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-orange, .iradio_flat-orange { background-image: url(orange@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* yellow */ .icheckbox_flat-yellow, .iradio_flat-yellow { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-yellow { background-position: 0 0; } .icheckbox_flat-yellow.checked { background-position: -22px 0; } .icheckbox_flat-yellow.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-yellow.checked.disabled { background-position: -66px 0; } .iradio_flat-yellow { background-position: -88px 0; } .iradio_flat-yellow.checked { background-position: -110px 0; } .iradio_flat-yellow.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-yellow.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-yellow, .iradio_flat-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* pink */ .icheckbox_flat-pink, .iradio_flat-pink { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-pink { background-position: 0 0; } .icheckbox_flat-pink.checked { background-position: -22px 0; } .icheckbox_flat-pink.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-pink.checked.disabled { background-position: -66px 0; } .iradio_flat-pink { background-position: -88px 0; } .iradio_flat-pink.checked { background-position: -110px 0; } .iradio_flat-pink.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-pink.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-pink, .iradio_flat-pink { background-image: url(pink@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } } /* purple */ .icheckbox_flat-purple, .iradio_flat-purple { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-purple { background-position: 0 0; } .icheckbox_flat-purple.checked { background-position: -22px 0; } .icheckbox_flat-purple.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-purple.checked.disabled { background-position: -66px 0; } .iradio_flat-purple { background-position: -88px 0; } .iradio_flat-purple.checked { background-position: -110px 0; } .iradio_flat-purple.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-purple.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-purple, .iradio_flat-purple { background-image: url(purple@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/_all.css
CSS
asf20
13,203
/* iCheck plugin Flat skin, orange ----------------------------------- */ .icheckbox_flat-orange, .iradio_flat-orange { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-orange { background-position: 0 0; } .icheckbox_flat-orange.checked { background-position: -22px 0; } .icheckbox_flat-orange.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-orange.checked.disabled { background-position: -66px 0; } .iradio_flat-orange { background-position: -88px 0; } .iradio_flat-orange.checked { background-position: -110px 0; } .iradio_flat-orange.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-orange.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-orange, .iradio_flat-orange { background-image: url(orange@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/orange.css
CSS
asf20
1,401
/* iCheck plugin Flat skin, grey ----------------------------------- */ .icheckbox_flat-grey, .iradio_flat-grey { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-grey { background-position: 0 0; } .icheckbox_flat-grey.checked { background-position: -22px 0; } .icheckbox_flat-grey.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-grey.checked.disabled { background-position: -66px 0; } .iradio_flat-grey { background-position: -88px 0; } .iradio_flat-grey.checked { background-position: -110px 0; } .iradio_flat-grey.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-grey.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-grey, .iradio_flat-grey { background-image: url(grey@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/grey.css
CSS
asf20
1,371
/* iCheck plugin Flat skin, yellow ----------------------------------- */ .icheckbox_flat-yellow, .iradio_flat-yellow { display: block; margin: 0; padding: 0; width: 20px; height: 20px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_flat-yellow { background-position: 0 0; } .icheckbox_flat-yellow.checked { background-position: -22px 0; } .icheckbox_flat-yellow.disabled { background-position: -44px 0; cursor: default; } .icheckbox_flat-yellow.checked.disabled { background-position: -66px 0; } .iradio_flat-yellow { background-position: -88px 0; } .iradio_flat-yellow.checked { background-position: -110px 0; } .iradio_flat-yellow.disabled { background-position: -132px 0; cursor: default; } .iradio_flat-yellow.checked.disabled { background-position: -154px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_flat-yellow, .iradio_flat-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 176px 22px; background-size: 176px 22px; } }
0x6a
trunk/libraries/icheck/skins/flat/yellow.css
CSS
asf20
1,401
/* iCheck plugin Square skin, green ----------------------------------- */ .icheckbox_square-green, .iradio_square-green { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-green { background-position: 0 0; } .icheckbox_square-green.hover { background-position: -24px 0; } .icheckbox_square-green.checked { background-position: -48px 0; } .icheckbox_square-green.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-green.checked.disabled { background-position: -96px 0; } .iradio_square-green { background-position: -120px 0; } .iradio_square-green.hover { background-position: -144px 0; } .iradio_square-green.checked { background-position: -168px 0; } .iradio_square-green.disabled { background-position: -192px 0; cursor: default; } .iradio_square-green.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-green, .iradio_square-green { background-image: url(green@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/green.css
CSS
asf20
1,571
/* iCheck plugin Square skin, red ----------------------------------- */ .icheckbox_square-red, .iradio_square-red { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-red { background-position: 0 0; } .icheckbox_square-red.hover { background-position: -24px 0; } .icheckbox_square-red.checked { background-position: -48px 0; } .icheckbox_square-red.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-red.checked.disabled { background-position: -96px 0; } .iradio_square-red { background-position: -120px 0; } .iradio_square-red.hover { background-position: -144px 0; } .iradio_square-red.checked { background-position: -168px 0; } .iradio_square-red.disabled { background-position: -192px 0; cursor: default; } .iradio_square-red.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-red, .iradio_square-red { background-image: url(red@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/red.css
CSS
asf20
1,537
/* iCheck plugin Square skin, pink ----------------------------------- */ .icheckbox_square-pink, .iradio_square-pink { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-pink { background-position: 0 0; } .icheckbox_square-pink.hover { background-position: -24px 0; } .icheckbox_square-pink.checked { background-position: -48px 0; } .icheckbox_square-pink.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-pink.checked.disabled { background-position: -96px 0; } .iradio_square-pink { background-position: -120px 0; } .iradio_square-pink.hover { background-position: -144px 0; } .iradio_square-pink.checked { background-position: -168px 0; } .iradio_square-pink.disabled { background-position: -192px 0; cursor: default; } .iradio_square-pink.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-pink, .iradio_square-pink { background-image: url(pink@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/pink.css
CSS
asf20
1,554
/* iCheck plugin Square skin, black ----------------------------------- */ .icheckbox_square, .iradio_square { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(square.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square { background-position: 0 0; } .icheckbox_square.hover { background-position: -24px 0; } .icheckbox_square.checked { background-position: -48px 0; } .icheckbox_square.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square.checked.disabled { background-position: -96px 0; } .iradio_square { background-position: -120px 0; } .iradio_square.hover { background-position: -144px 0; } .iradio_square.checked { background-position: -168px 0; } .iradio_square.disabled { background-position: -192px 0; cursor: default; } .iradio_square.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square, .iradio_square { background-image: url(square@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/square.css
CSS
asf20
1,489
/* iCheck plugin Square skin, blue ----------------------------------- */ .icheckbox_square-blue, .iradio_square-blue { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-blue { background-position: 0 0; } .icheckbox_square-blue.hover { background-position: -24px 0; } .icheckbox_square-blue.checked { background-position: -48px 0; } .icheckbox_square-blue.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-blue.checked.disabled { background-position: -96px 0; } .iradio_square-blue { background-position: -120px 0; } .iradio_square-blue.hover { background-position: -144px 0; } .iradio_square-blue.checked { background-position: -168px 0; } .iradio_square-blue.disabled { background-position: -192px 0; cursor: default; } .iradio_square-blue.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-blue, .iradio_square-blue { background-image: url(blue@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/blue.css
CSS
asf20
1,554
/* iCheck plugin Square skin, purple ----------------------------------- */ .icheckbox_square-purple, .iradio_square-purple { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-purple { background-position: 0 0; } .icheckbox_square-purple.hover { background-position: -24px 0; } .icheckbox_square-purple.checked { background-position: -48px 0; } .icheckbox_square-purple.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-purple.checked.disabled { background-position: -96px 0; } .iradio_square-purple { background-position: -120px 0; } .iradio_square-purple.hover { background-position: -144px 0; } .iradio_square-purple.checked { background-position: -168px 0; } .iradio_square-purple.disabled { background-position: -192px 0; cursor: default; } .iradio_square-purple.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-purple, .iradio_square-purple { background-image: url(purple@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/purple.css
CSS
asf20
1,588
/* iCheck plugin Square skin, aero ----------------------------------- */ .icheckbox_square-aero, .iradio_square-aero { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-aero { background-position: 0 0; } .icheckbox_square-aero.hover { background-position: -24px 0; } .icheckbox_square-aero.checked { background-position: -48px 0; } .icheckbox_square-aero.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-aero.checked.disabled { background-position: -96px 0; } .iradio_square-aero { background-position: -120px 0; } .iradio_square-aero.hover { background-position: -144px 0; } .iradio_square-aero.checked { background-position: -168px 0; } .iradio_square-aero.disabled { background-position: -192px 0; cursor: default; } .iradio_square-aero.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-aero, .iradio_square-aero { background-image: url(aero@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/aero.css
CSS
asf20
1,554
/* iCheck plugin Square skin ----------------------------------- */ .icheckbox_square, .iradio_square { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(square.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square { background-position: 0 0; } .icheckbox_square.hover { background-position: -24px 0; } .icheckbox_square.checked { background-position: -48px 0; } .icheckbox_square.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square.checked.disabled { background-position: -96px 0; } .iradio_square { background-position: -120px 0; } .iradio_square.hover { background-position: -144px 0; } .iradio_square.checked { background-position: -168px 0; } .iradio_square.disabled { background-position: -192px 0; cursor: default; } .iradio_square.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square, .iradio_square { background-image: url(square@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* red */ .icheckbox_square-red, .iradio_square-red { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(red.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-red { background-position: 0 0; } .icheckbox_square-red.hover { background-position: -24px 0; } .icheckbox_square-red.checked { background-position: -48px 0; } .icheckbox_square-red.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-red.checked.disabled { background-position: -96px 0; } .iradio_square-red { background-position: -120px 0; } .iradio_square-red.hover { background-position: -144px 0; } .iradio_square-red.checked { background-position: -168px 0; } .iradio_square-red.disabled { background-position: -192px 0; cursor: default; } .iradio_square-red.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-red, .iradio_square-red { background-image: url(red@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* green */ .icheckbox_square-green, .iradio_square-green { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(green.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-green { background-position: 0 0; } .icheckbox_square-green.hover { background-position: -24px 0; } .icheckbox_square-green.checked { background-position: -48px 0; } .icheckbox_square-green.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-green.checked.disabled { background-position: -96px 0; } .iradio_square-green { background-position: -120px 0; } .iradio_square-green.hover { background-position: -144px 0; } .iradio_square-green.checked { background-position: -168px 0; } .iradio_square-green.disabled { background-position: -192px 0; cursor: default; } .iradio_square-green.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-green, .iradio_square-green { background-image: url(green@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* blue */ .icheckbox_square-blue, .iradio_square-blue { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(blue.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-blue { background-position: 0 0; } .icheckbox_square-blue.hover { background-position: -24px 0; } .icheckbox_square-blue.checked { background-position: -48px 0; } .icheckbox_square-blue.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-blue.checked.disabled { background-position: -96px 0; } .iradio_square-blue { background-position: -120px 0; } .iradio_square-blue.hover { background-position: -144px 0; } .iradio_square-blue.checked { background-position: -168px 0; } .iradio_square-blue.disabled { background-position: -192px 0; cursor: default; } .iradio_square-blue.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-blue, .iradio_square-blue { background-image: url(blue@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* aero */ .icheckbox_square-aero, .iradio_square-aero { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(aero.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-aero { background-position: 0 0; } .icheckbox_square-aero.hover { background-position: -24px 0; } .icheckbox_square-aero.checked { background-position: -48px 0; } .icheckbox_square-aero.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-aero.checked.disabled { background-position: -96px 0; } .iradio_square-aero { background-position: -120px 0; } .iradio_square-aero.hover { background-position: -144px 0; } .iradio_square-aero.checked { background-position: -168px 0; } .iradio_square-aero.disabled { background-position: -192px 0; cursor: default; } .iradio_square-aero.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-aero, .iradio_square-aero { background-image: url(aero@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* grey */ .icheckbox_square-grey, .iradio_square-grey { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-grey { background-position: 0 0; } .icheckbox_square-grey.hover { background-position: -24px 0; } .icheckbox_square-grey.checked { background-position: -48px 0; } .icheckbox_square-grey.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-grey.checked.disabled { background-position: -96px 0; } .iradio_square-grey { background-position: -120px 0; } .iradio_square-grey.hover { background-position: -144px 0; } .iradio_square-grey.checked { background-position: -168px 0; } .iradio_square-grey.disabled { background-position: -192px 0; cursor: default; } .iradio_square-grey.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-grey, .iradio_square-grey { background-image: url(grey@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* orange */ .icheckbox_square-orange, .iradio_square-orange { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-orange { background-position: 0 0; } .icheckbox_square-orange.hover { background-position: -24px 0; } .icheckbox_square-orange.checked { background-position: -48px 0; } .icheckbox_square-orange.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-orange.checked.disabled { background-position: -96px 0; } .iradio_square-orange { background-position: -120px 0; } .iradio_square-orange.hover { background-position: -144px 0; } .iradio_square-orange.checked { background-position: -168px 0; } .iradio_square-orange.disabled { background-position: -192px 0; cursor: default; } .iradio_square-orange.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-orange, .iradio_square-orange { background-image: url(orange@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* yellow */ .icheckbox_square-yellow, .iradio_square-yellow { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-yellow { background-position: 0 0; } .icheckbox_square-yellow.hover { background-position: -24px 0; } .icheckbox_square-yellow.checked { background-position: -48px 0; } .icheckbox_square-yellow.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-yellow.checked.disabled { background-position: -96px 0; } .iradio_square-yellow { background-position: -120px 0; } .iradio_square-yellow.hover { background-position: -144px 0; } .iradio_square-yellow.checked { background-position: -168px 0; } .iradio_square-yellow.disabled { background-position: -192px 0; cursor: default; } .iradio_square-yellow.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-yellow, .iradio_square-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* pink */ .icheckbox_square-pink, .iradio_square-pink { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(pink.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-pink { background-position: 0 0; } .icheckbox_square-pink.hover { background-position: -24px 0; } .icheckbox_square-pink.checked { background-position: -48px 0; } .icheckbox_square-pink.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-pink.checked.disabled { background-position: -96px 0; } .iradio_square-pink { background-position: -120px 0; } .iradio_square-pink.hover { background-position: -144px 0; } .iradio_square-pink.checked { background-position: -168px 0; } .iradio_square-pink.disabled { background-position: -192px 0; cursor: default; } .iradio_square-pink.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-pink, .iradio_square-pink { background-image: url(pink@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } } /* purple */ .icheckbox_square-purple, .iradio_square-purple { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(purple.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-purple { background-position: 0 0; } .icheckbox_square-purple.hover { background-position: -24px 0; } .icheckbox_square-purple.checked { background-position: -48px 0; } .icheckbox_square-purple.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-purple.checked.disabled { background-position: -96px 0; } .iradio_square-purple { background-position: -120px 0; } .iradio_square-purple.hover { background-position: -144px 0; } .iradio_square-purple.checked { background-position: -168px 0; } .iradio_square-purple.disabled { background-position: -192px 0; cursor: default; } .iradio_square-purple.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-purple, .iradio_square-purple { background-image: url(purple@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/_all.css
CSS
asf20
15,021
/* iCheck plugin Square skin, orange ----------------------------------- */ .icheckbox_square-orange, .iradio_square-orange { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(orange.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-orange { background-position: 0 0; } .icheckbox_square-orange.hover { background-position: -24px 0; } .icheckbox_square-orange.checked { background-position: -48px 0; } .icheckbox_square-orange.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-orange.checked.disabled { background-position: -96px 0; } .iradio_square-orange { background-position: -120px 0; } .iradio_square-orange.hover { background-position: -144px 0; } .iradio_square-orange.checked { background-position: -168px 0; } .iradio_square-orange.disabled { background-position: -192px 0; cursor: default; } .iradio_square-orange.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-orange, .iradio_square-orange { background-image: url(orange@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/orange.css
CSS
asf20
1,588
/* iCheck plugin Square skin, grey ----------------------------------- */ .icheckbox_square-grey, .iradio_square-grey { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(grey.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-grey { background-position: 0 0; } .icheckbox_square-grey.hover { background-position: -24px 0; } .icheckbox_square-grey.checked { background-position: -48px 0; } .icheckbox_square-grey.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-grey.checked.disabled { background-position: -96px 0; } .iradio_square-grey { background-position: -120px 0; } .iradio_square-grey.hover { background-position: -144px 0; } .iradio_square-grey.checked { background-position: -168px 0; } .iradio_square-grey.disabled { background-position: -192px 0; cursor: default; } .iradio_square-grey.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-grey, .iradio_square-grey { background-image: url(grey@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/grey.css
CSS
asf20
1,554
/* iCheck plugin Square skin, yellow ----------------------------------- */ .icheckbox_square-yellow, .iradio_square-yellow { display: block; margin: 0; padding: 0; width: 22px; height: 22px; background: url(yellow.png) no-repeat; border: none; cursor: pointer; } .icheckbox_square-yellow { background-position: 0 0; } .icheckbox_square-yellow.hover { background-position: -24px 0; } .icheckbox_square-yellow.checked { background-position: -48px 0; } .icheckbox_square-yellow.disabled { background-position: -72px 0; cursor: default; } .icheckbox_square-yellow.checked.disabled { background-position: -96px 0; } .iradio_square-yellow { background-position: -120px 0; } .iradio_square-yellow.hover { background-position: -144px 0; } .iradio_square-yellow.checked { background-position: -168px 0; } .iradio_square-yellow.disabled { background-position: -192px 0; cursor: default; } .iradio_square-yellow.checked.disabled { background-position: -216px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_square-yellow, .iradio_square-yellow { background-image: url(yellow@2x.png); -webkit-background-size: 240px 24px; background-size: 240px 24px; } }
0x6a
trunk/libraries/icheck/skins/square/yellow.css
CSS
asf20
1,588
/* iCheck plugin Polaris skin ----------------------------------- */ .icheckbox_polaris, .iradio_polaris { display: block; margin: 0; padding: 0; width: 29px; height: 29px; background: url(polaris.png) no-repeat; border: none; cursor: pointer; } .icheckbox_polaris { background-position: 0 0; } .icheckbox_polaris.hover { background-position: -31px 0; } .icheckbox_polaris.checked { background-position: -62px 0; } .icheckbox_polaris.disabled { background-position: -93px 0; cursor: default; } .icheckbox_polaris.checked.disabled { background-position: -124px 0; } .iradio_polaris { background-position: -155px 0; } .iradio_polaris.hover { background-position: -186px 0; } .iradio_polaris.checked { background-position: -217px 0; } .iradio_polaris.disabled { background-position: -248px 0; cursor: default; } .iradio_polaris.checked.disabled { background-position: -279px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_polaris, .iradio_polaris { background-image: url(polaris@2x.png); -webkit-background-size: 310px 31px; background-size: 310px 31px; } }
0x6a
trunk/libraries/icheck/skins/polaris/polaris.css
CSS
asf20
1,500
/* iCheck plugin Line skin, green ----------------------------------- */ .icheckbox_line-green, .iradio_line-green { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #1b7e5a; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-green .icheck_line-icon, .iradio_line-green .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-green.hover, .icheckbox_line-green.checked.hover, .iradio_line-green.hover { background: #24AA7A; } .icheckbox_line-green.checked, .iradio_line-green.checked { background: #1b7e5a; } .icheckbox_line-green.checked .icheck_line-icon, .iradio_line-green.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-green.disabled, .iradio_line-green.disabled { background: #89E6C4; cursor: default; } .icheckbox_line-green.disabled .icheck_line-icon, .iradio_line-green.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-green.checked.disabled, .iradio_line-green.checked.disabled { background: #89E6C4; } .icheckbox_line-green.checked.disabled .icheck_line-icon, .iradio_line-green.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-green .icheck_line-icon, .iradio_line-green .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/green.css
CSS
asf20
2,244
/* iCheck plugin Line skin, red ----------------------------------- */ .icheckbox_line-red, .iradio_line-red { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #e56c69; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-red .icheck_line-icon, .iradio_line-red .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-red.hover, .icheckbox_line-red.checked.hover, .iradio_line-red.hover { background: #E98582; } .icheckbox_line-red.checked, .iradio_line-red.checked { background: #e56c69; } .icheckbox_line-red.checked .icheck_line-icon, .iradio_line-red.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-red.disabled, .iradio_line-red.disabled { background: #F7D3D2; cursor: default; } .icheckbox_line-red.disabled .icheck_line-icon, .iradio_line-red.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-red.checked.disabled, .iradio_line-red.checked.disabled { background: #F7D3D2; } .icheckbox_line-red.checked.disabled .icheck_line-icon, .iradio_line-red.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-red .icheck_line-icon, .iradio_line-red .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/red.css
CSS
asf20
2,200
/* iCheck plugin Line skin, pink ----------------------------------- */ .icheckbox_line-pink, .iradio_line-pink { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #a77a94; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-pink .icheck_line-icon, .iradio_line-pink .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-pink.hover, .icheckbox_line-pink.checked.hover, .iradio_line-pink.hover { background: #B995A9; } .icheckbox_line-pink.checked, .iradio_line-pink.checked { background: #a77a94; } .icheckbox_line-pink.checked .icheck_line-icon, .iradio_line-pink.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-pink.disabled, .iradio_line-pink.disabled { background: #E0D0DA; cursor: default; } .icheckbox_line-pink.disabled .icheck_line-icon, .iradio_line-pink.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-pink.checked.disabled, .iradio_line-pink.checked.disabled { background: #E0D0DA; } .icheckbox_line-pink.checked.disabled .icheck_line-icon, .iradio_line-pink.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-pink .icheck_line-icon, .iradio_line-pink .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/pink.css
CSS
asf20
2,222
/* iCheck plugin Line skin, blue ----------------------------------- */ .icheckbox_line-blue, .iradio_line-blue { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #2489c5; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-blue .icheck_line-icon, .iradio_line-blue .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-blue.hover, .icheckbox_line-blue.checked.hover, .iradio_line-blue.hover { background: #3DA0DB; } .icheckbox_line-blue.checked, .iradio_line-blue.checked { background: #2489c5; } .icheckbox_line-blue.checked .icheck_line-icon, .iradio_line-blue.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-blue.disabled, .iradio_line-blue.disabled { background: #ADD7F0; cursor: default; } .icheckbox_line-blue.disabled .icheck_line-icon, .iradio_line-blue.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-blue.checked.disabled, .iradio_line-blue.checked.disabled { background: #ADD7F0; } .icheckbox_line-blue.checked.disabled .icheck_line-icon, .iradio_line-blue.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-blue .icheck_line-icon, .iradio_line-blue .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/blue.css
CSS
asf20
2,222
/* iCheck plugin Line skin, purple ----------------------------------- */ .icheckbox_line-purple, .iradio_line-purple { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #6a5a8c; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-purple .icheck_line-icon, .iradio_line-purple .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-purple.hover, .icheckbox_line-purple.checked.hover, .iradio_line-purple.hover { background: #8677A7; } .icheckbox_line-purple.checked, .iradio_line-purple.checked { background: #6a5a8c; } .icheckbox_line-purple.checked .icheck_line-icon, .iradio_line-purple.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-purple.disabled, .iradio_line-purple.disabled { background: #D2CCDE; cursor: default; } .icheckbox_line-purple.disabled .icheck_line-icon, .iradio_line-purple.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-purple.checked.disabled, .iradio_line-purple.checked.disabled { background: #D2CCDE; } .icheckbox_line-purple.checked.disabled .icheck_line-icon, .iradio_line-purple.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-purple .icheck_line-icon, .iradio_line-purple .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/purple.css
CSS
asf20
2,266
/* iCheck plugin Line skin, aero ----------------------------------- */ .icheckbox_line-aero, .iradio_line-aero { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #9cc2cb; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-aero .icheck_line-icon, .iradio_line-aero .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-aero.hover, .icheckbox_line-aero.checked.hover, .iradio_line-aero.hover { background: #B5D1D8; } .icheckbox_line-aero.checked, .iradio_line-aero.checked { background: #9cc2cb; } .icheckbox_line-aero.checked .icheck_line-icon, .iradio_line-aero.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-aero.disabled, .iradio_line-aero.disabled { background: #D2E4E8; cursor: default; } .icheckbox_line-aero.disabled .icheck_line-icon, .iradio_line-aero.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-aero.checked.disabled, .iradio_line-aero.checked.disabled { background: #D2E4E8; } .icheckbox_line-aero.checked.disabled .icheck_line-icon, .iradio_line-aero.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-aero .icheck_line-icon, .iradio_line-aero .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/aero.css
CSS
asf20
2,222
/* iCheck plugin Line skin ----------------------------------- */ .icheckbox_line, .iradio_line { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #000; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line .icheck_line-icon, .iradio_line .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line.hover, .icheckbox_line.checked.hover, .iradio_line.hover { background: #444; } .icheckbox_line.checked, .iradio_line.checked { background: #000; } .icheckbox_line.checked .icheck_line-icon, .iradio_line.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line.disabled, .iradio_line.disabled { background: #ccc; cursor: default; } .icheckbox_line.disabled .icheck_line-icon, .iradio_line.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line.checked.disabled, .iradio_line.checked.disabled { background: #ccc; } .icheckbox_line.checked.disabled .icheck_line-icon, .iradio_line.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line .icheck_line-icon, .iradio_line .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* red */ .icheckbox_line-red, .iradio_line-red { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #e56c69; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-red .icheck_line-icon, .iradio_line-red .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-red.hover, .icheckbox_line-red.checked.hover, .iradio_line-red.hover { background: #E98582; } .icheckbox_line-red.checked, .iradio_line-red.checked { background: #e56c69; } .icheckbox_line-red.checked .icheck_line-icon, .iradio_line-red.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-red.disabled, .iradio_line-red.disabled { background: #F7D3D2; cursor: default; } .icheckbox_line-red.disabled .icheck_line-icon, .iradio_line-red.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-red.checked.disabled, .iradio_line-red.checked.disabled { background: #F7D3D2; } .icheckbox_line-red.checked.disabled .icheck_line-icon, .iradio_line-red.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-red .icheck_line-icon, .iradio_line-red .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* green */ .icheckbox_line-green, .iradio_line-green { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #1b7e5a; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-green .icheck_line-icon, .iradio_line-green .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-green.hover, .icheckbox_line-green.checked.hover, .iradio_line-green.hover { background: #24AA7A; } .icheckbox_line-green.checked, .iradio_line-green.checked { background: #1b7e5a; } .icheckbox_line-green.checked .icheck_line-icon, .iradio_line-green.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-green.disabled, .iradio_line-green.disabled { background: #89E6C4; cursor: default; } .icheckbox_line-green.disabled .icheck_line-icon, .iradio_line-green.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-green.checked.disabled, .iradio_line-green.checked.disabled { background: #89E6C4; } .icheckbox_line-green.checked.disabled .icheck_line-icon, .iradio_line-green.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-green .icheck_line-icon, .iradio_line-green .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* blue */ .icheckbox_line-blue, .iradio_line-blue { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #2489c5; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-blue .icheck_line-icon, .iradio_line-blue .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-blue.hover, .icheckbox_line-blue.checked.hover, .iradio_line-blue.hover { background: #3DA0DB; } .icheckbox_line-blue.checked, .iradio_line-blue.checked { background: #2489c5; } .icheckbox_line-blue.checked .icheck_line-icon, .iradio_line-blue.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-blue.disabled, .iradio_line-blue.disabled { background: #ADD7F0; cursor: default; } .icheckbox_line-blue.disabled .icheck_line-icon, .iradio_line-blue.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-blue.checked.disabled, .iradio_line-blue.checked.disabled { background: #ADD7F0; } .icheckbox_line-blue.checked.disabled .icheck_line-icon, .iradio_line-blue.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-blue .icheck_line-icon, .iradio_line-blue .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* aero */ .icheckbox_line-aero, .iradio_line-aero { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #9cc2cb; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-aero .icheck_line-icon, .iradio_line-aero .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-aero.hover, .icheckbox_line-aero.checked.hover, .iradio_line-aero.hover { background: #B5D1D8; } .icheckbox_line-aero.checked, .iradio_line-aero.checked { background: #9cc2cb; } .icheckbox_line-aero.checked .icheck_line-icon, .iradio_line-aero.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-aero.disabled, .iradio_line-aero.disabled { background: #D2E4E8; cursor: default; } .icheckbox_line-aero.disabled .icheck_line-icon, .iradio_line-aero.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-aero.checked.disabled, .iradio_line-aero.checked.disabled { background: #D2E4E8; } .icheckbox_line-aero.checked.disabled .icheck_line-icon, .iradio_line-aero.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-aero .icheck_line-icon, .iradio_line-aero .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* grey */ .icheckbox_line-grey, .iradio_line-grey { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #73716e; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-grey .icheck_line-icon, .iradio_line-grey .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-grey.hover, .icheckbox_line-grey.checked.hover, .iradio_line-grey.hover { background: #8B8986; } .icheckbox_line-grey.checked, .iradio_line-grey.checked { background: #73716e; } .icheckbox_line-grey.checked .icheck_line-icon, .iradio_line-grey.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-grey.disabled, .iradio_line-grey.disabled { background: #D5D4D3; cursor: default; } .icheckbox_line-grey.disabled .icheck_line-icon, .iradio_line-grey.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-grey.checked.disabled, .iradio_line-grey.checked.disabled { background: #D5D4D3; } .icheckbox_line-grey.checked.disabled .icheck_line-icon, .iradio_line-grey.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-grey .icheck_line-icon, .iradio_line-grey .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* orange */ .icheckbox_line-orange, .iradio_line-orange { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #f70; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-orange .icheck_line-icon, .iradio_line-orange .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-orange.hover, .icheckbox_line-orange.checked.hover, .iradio_line-orange.hover { background: #FF9233; } .icheckbox_line-orange.checked, .iradio_line-orange.checked { background: #f70; } .icheckbox_line-orange.checked .icheck_line-icon, .iradio_line-orange.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-orange.disabled, .iradio_line-orange.disabled { background: #FFD6B3; cursor: default; } .icheckbox_line-orange.disabled .icheck_line-icon, .iradio_line-orange.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-orange.checked.disabled, .iradio_line-orange.checked.disabled { background: #FFD6B3; } .icheckbox_line-orange.checked.disabled .icheck_line-icon, .iradio_line-orange.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-orange .icheck_line-icon, .iradio_line-orange .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* yellow */ .icheckbox_line-yellow, .iradio_line-yellow { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #FFC414; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-yellow .icheck_line-icon, .iradio_line-yellow .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-yellow.hover, .icheckbox_line-yellow.checked.hover, .iradio_line-yellow.hover { background: #FFD34F; } .icheckbox_line-yellow.checked, .iradio_line-yellow.checked { background: #FFC414; } .icheckbox_line-yellow.checked .icheck_line-icon, .iradio_line-yellow.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-yellow.disabled, .iradio_line-yellow.disabled { background: #FFE495; cursor: default; } .icheckbox_line-yellow.disabled .icheck_line-icon, .iradio_line-yellow.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-yellow.checked.disabled, .iradio_line-yellow.checked.disabled { background: #FFE495; } .icheckbox_line-yellow.checked.disabled .icheck_line-icon, .iradio_line-yellow.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-yellow .icheck_line-icon, .iradio_line-yellow .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* pink */ .icheckbox_line-pink, .iradio_line-pink { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #a77a94; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-pink .icheck_line-icon, .iradio_line-pink .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-pink.hover, .icheckbox_line-pink.checked.hover, .iradio_line-pink.hover { background: #B995A9; } .icheckbox_line-pink.checked, .iradio_line-pink.checked { background: #a77a94; } .icheckbox_line-pink.checked .icheck_line-icon, .iradio_line-pink.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-pink.disabled, .iradio_line-pink.disabled { background: #E0D0DA; cursor: default; } .icheckbox_line-pink.disabled .icheck_line-icon, .iradio_line-pink.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-pink.checked.disabled, .iradio_line-pink.checked.disabled { background: #E0D0DA; } .icheckbox_line-pink.checked.disabled .icheck_line-icon, .iradio_line-pink.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-pink .icheck_line-icon, .iradio_line-pink .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } } /* purple */ .icheckbox_line-purple, .iradio_line-purple { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #6a5a8c; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-purple .icheck_line-icon, .iradio_line-purple .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-purple.hover, .icheckbox_line-purple.checked.hover, .iradio_line-purple.hover { background: #8677A7; } .icheckbox_line-purple.checked, .iradio_line-purple.checked { background: #6a5a8c; } .icheckbox_line-purple.checked .icheck_line-icon, .iradio_line-purple.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-purple.disabled, .iradio_line-purple.disabled { background: #D2CCDE; cursor: default; } .icheckbox_line-purple.disabled .icheck_line-icon, .iradio_line-purple.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-purple.checked.disabled, .iradio_line-purple.checked.disabled { background: #D2CCDE; } .icheckbox_line-purple.checked.disabled .icheck_line-icon, .iradio_line-purple.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-purple .icheck_line-icon, .iradio_line-purple .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/_all.css
CSS
asf20
21,689
/* iCheck plugin Line skin, orange ----------------------------------- */ .icheckbox_line-orange, .iradio_line-orange { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #f70; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-orange .icheck_line-icon, .iradio_line-orange .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-orange.hover, .icheckbox_line-orange.checked.hover, .iradio_line-orange.hover { background: #FF9233; } .icheckbox_line-orange.checked, .iradio_line-orange.checked { background: #f70; } .icheckbox_line-orange.checked .icheck_line-icon, .iradio_line-orange.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-orange.disabled, .iradio_line-orange.disabled { background: #FFD6B3; cursor: default; } .icheckbox_line-orange.disabled .icheck_line-icon, .iradio_line-orange.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-orange.checked.disabled, .iradio_line-orange.checked.disabled { background: #FFD6B3; } .icheckbox_line-orange.checked.disabled .icheck_line-icon, .iradio_line-orange.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-orange .icheck_line-icon, .iradio_line-orange .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/orange.css
CSS
asf20
2,260
/* iCheck plugin Line skin, grey ----------------------------------- */ .icheckbox_line-grey, .iradio_line-grey { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #73716e; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-grey .icheck_line-icon, .iradio_line-grey .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-grey.hover, .icheckbox_line-grey.checked.hover, .iradio_line-grey.hover { background: #8B8986; } .icheckbox_line-grey.checked, .iradio_line-grey.checked { background: #73716e; } .icheckbox_line-grey.checked .icheck_line-icon, .iradio_line-grey.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-grey.disabled, .iradio_line-grey.disabled { background: #D5D4D3; cursor: default; } .icheckbox_line-grey.disabled .icheck_line-icon, .iradio_line-grey.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-grey.checked.disabled, .iradio_line-grey.checked.disabled { background: #D5D4D3; } .icheckbox_line-grey.checked.disabled .icheck_line-icon, .iradio_line-grey.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-grey .icheck_line-icon, .iradio_line-grey .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/grey.css
CSS
asf20
2,222
/* iCheck plugin Line skin, black ----------------------------------- */ .icheckbox_line, .iradio_line { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #000; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line .icheck_line-icon, .iradio_line .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line.hover, .icheckbox_line.checked.hover, .iradio_line.hover { background: #444; } .icheckbox_line.checked, .iradio_line.checked { background: #000; } .icheckbox_line.checked .icheck_line-icon, .iradio_line.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line.disabled, .iradio_line.disabled { background: #ccc; cursor: default; } .icheckbox_line.disabled .icheck_line-icon, .iradio_line.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line.checked.disabled, .iradio_line.checked.disabled { background: #ccc; } .icheckbox_line.checked.disabled .icheck_line-icon, .iradio_line.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line .icheck_line-icon, .iradio_line .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/line.css
CSS
asf20
2,103
/* iCheck plugin Line skin, yellow ----------------------------------- */ .icheckbox_line-yellow, .iradio_line-yellow { position: relative; display: block; margin: 0; padding: 5px 15px 5px 38px; font-size: 13px; line-height: 17px; color: #fff; background: #FFC414; border: none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; cursor: pointer; } .icheckbox_line-yellow .icheck_line-icon, .iradio_line-yellow .icheck_line-icon { position: absolute; top: 50%; left: 13px; width: 13px; height: 11px; margin: -5px 0 0 0; padding: 0; overflow: hidden; background: url(line.png) no-repeat; border: none; } .icheckbox_line-yellow.hover, .icheckbox_line-yellow.checked.hover, .iradio_line-yellow.hover { background: #FFD34F; } .icheckbox_line-yellow.checked, .iradio_line-yellow.checked { background: #FFC414; } .icheckbox_line-yellow.checked .icheck_line-icon, .iradio_line-yellow.checked .icheck_line-icon { background-position: -15px 0; } .icheckbox_line-yellow.disabled, .iradio_line-yellow.disabled { background: #FFE495; cursor: default; } .icheckbox_line-yellow.disabled .icheck_line-icon, .iradio_line-yellow.disabled .icheck_line-icon { background-position: -30px 0; } .icheckbox_line-yellow.checked.disabled, .iradio_line-yellow.checked.disabled { background: #FFE495; } .icheckbox_line-yellow.checked.disabled .icheck_line-icon, .iradio_line-yellow.checked.disabled .icheck_line-icon { background-position: -45px 0; } /* Retina support */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min-device-pixel-ratio: 1.5) { .icheckbox_line-yellow .icheck_line-icon, .iradio_line-yellow .icheck_line-icon { background-image: url(line@2x.png); -webkit-background-size: 60px 13px; background-size: 60px 13px; } }
0x6a
trunk/libraries/icheck/skins/line/yellow.css
CSS
asf20
2,266
/*! * iCheck v0.9.1, http://git.io/uhUPMA * ================================= * Powerful jQuery plugin for checkboxes and radio buttons customization * * (c) 2013 Damir Foy, http://damirfoy.com * MIT Licensed */ (function($) { // Cached vars var _iCheck = 'iCheck', _iCheckHelper = _iCheck + '-helper', _checkbox = 'checkbox', _radio = 'radio', _checked = 'checked', _unchecked = 'un' + _checked, _disabled = 'disabled', _determinate = 'determinate', _indeterminate = 'in' + _determinate, _update = 'update', _type = 'type', _click = 'click', _touch = 'touchbegin.i touchend.i', _add = 'addClass', _remove = 'removeClass', _callback = 'trigger', _label = 'label', _cursor = 'cursor', _mobile = /ipad|iphone|ipod|android|blackberry|windows phone|opera mini/i.test(navigator.userAgent); // Plugin init $.fn[_iCheck] = function(options, fire) { // Walker var handle = ':' + _checkbox + ', :' + _radio, stack = $(), walker = function(object) { object.each(function() { var self = $(this); if (self.is(handle)) { stack = stack.add(self); } else { stack = stack.add(self.find(handle)); }; }); }; // Check if we should operate with some method if (/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(options)) { // Normalize method's name options = options.toLowerCase(); // Find checkboxes and radio buttons walker(this); return stack.each(function() { if (options == 'destroy') { tidy(this, 'ifDestroyed'); } else { operate($(this), true, options); }; // Fire method's callback if ($.isFunction(fire)) { fire(); }; }); // Customization } else if (typeof options == 'object' || !options) { // Check if any options were passed var settings = $.extend({ checkedClass: _checked, disabledClass: _disabled, indeterminateClass: _indeterminate, labelHover: true }, options), selector = settings.handle, hoverClass = settings.hoverClass || 'hover', focusClass = settings.focusClass || 'focus', activeClass = settings.activeClass || 'active', labelHover = !!settings.labelHover, labelHoverClass = settings.labelHoverClass || 'hover', // Setup clickable area area = ('' + settings.increaseArea).replace('%', '') | 0; // Selector limit if (selector == _checkbox || selector == _radio) { handle = ':' + selector; }; // Clickable area limit if (area < -50) { area = -50; }; // Walk around the selector walker(this); return stack.each(function() { // If already customized tidy(this); var self = $(this), node = this, id = node.id, // Layer styles offset = -area + '%', size = 100 + (area * 2) + '%', layer = { position: 'absolute', top: offset, left: offset, display: 'block', width: size, height: size, margin: 0, padding: 0, background: '#fff', border: 0, opacity: 0 }, // Choose how to hide input hide = _mobile ? { position: 'absolute', visibility: 'hidden' } : area ? layer : { position: 'absolute', opacity: 0 }, // Get proper class className = node[_type] == _checkbox ? settings.checkboxClass || 'i' + _checkbox : settings.radioClass || 'i' + _radio, // Find assigned labels label = $(_label + '[for="' + id + '"]').add(self.closest(_label)), // Wrap input parent = self.wrap('<div class="' + className + '"/>')[_callback]('ifCreated').parent().append(settings.insert), // Layer addition helper = $('<ins class="' + _iCheckHelper + '"/>').css(layer).appendTo(parent); // Finalize customization self.data(_iCheck, {o: settings, s: self.attr('style')}).css(hide); !!settings.inheritClass && parent[_add](node.className); !!settings.inheritID && id && parent.attr('id', _iCheck + '-' + id); parent.css('position') == 'static' && parent.css('position', 'relative'); operate(self, true, _update); // Label events if (label.length) { label.on(_click + '.i mouseenter.i mouseleave.i ' + _touch, function(event) { var type = event[_type], item = $(this); // Do nothing if input is disabled if (!node[_disabled]) { // Click if (type == _click) { operate(self, false, true); // Hover state } else if (labelHover) { // mouseleave|touchend if (/ve|nd/.test(type)) { parent[_remove](hoverClass); item[_remove](labelHoverClass); } else { parent[_add](hoverClass); item[_add](labelHoverClass); }; }; if (_mobile) { event.stopPropagation(); } else { return false; }; }; }); }; // Input events self.on(_click + '.i focus.i blur.i keyup.i keydown.i keypress.i', function(event) { var type = event[_type], key = event.keyCode; // Click if (type == _click) { return false; // Keydown } else if (type == 'keydown' && key == 32) { if (!(node[_type] == _radio && node[_checked])) { if (node[_checked]) { off(self, _checked); } else { on(self, _checked); }; }; return false; // Keyup } else if (type == 'keyup' && node[_type] == _radio) { !node[_checked] && on(self, _checked); // Focus/blur } else if (/us|ur/.test(type)) { parent[type == 'blur' ? _remove : _add](focusClass); }; }); // Helper events helper.on(_click + ' mousedown mouseup mouseover mouseout ' + _touch, function(event) { var type = event[_type], // mousedown|mouseup toggle = /wn|up/.test(type) ? activeClass : hoverClass; // Do nothing if input is disabled if (!node[_disabled]) { // Click if (type == _click) { operate(self, false, true); // Active and hover states } else { // State is on if (/wn|er|in/.test(type)) { // mousedown|mouseover|touchbegin parent[_add](toggle); // State is off } else { parent[_remove](toggle + ' ' + activeClass); }; // Label hover if (label.length && labelHover && toggle == hoverClass) { // mouseout|touchend label[/ut|nd/.test(type) ? _remove : _add](labelHoverClass); }; }; if (_mobile) { event.stopPropagation(); } else { return false; }; }; }); }); } else { return this; }; }; // Do something with inputs function operate(input, direct, method) { var node = input[0]; state = /er/.test(method) ? _indeterminate : /bl/.test(method) ? _disabled : _checked, active = method == _update ? { checked: node[_checked], disabled: node[_disabled], indeterminate: input.attr(_indeterminate) == 'true' || input.attr(_determinate) == 'false' } : node[state]; // Check, disable or indeterminate if (/^(ch|di|in)/.test(method) && !active) { on(input, state); // Uncheck, enable or determinate } else if (/^(un|en|de)/.test(method) && active) { off(input, state); // Update } else if (method == _update) { // Handle states for (var state in active) { if (active[state]) { on(input, state, true); } else { off(input, state, true); }; }; } else if (!direct || method == 'toggle') { // Helper or label was clicked if (!direct) { input[_callback]('ifClicked'); }; // Toggle checked state if (active) { if (node[_type] !== _radio) { off(input, state); }; } else { on(input, state); }; }; }; // Add checked, disabled or indeterminate state function on(input, state, keep) { var node = input[0], parent = input.parent(), checked = state == _checked, indeterminate = state == _indeterminate, callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled', regular = option(node, callback + capitalize(node[_type])), specific = option(node, state + capitalize(node[_type])); // Prevent unnecessary actions if (node[state] !== true) { // Toggle assigned radio buttons if (!keep && state == _checked && node[_type] == _radio && node.name) { var form = input.closest('form'), inputs = 'input[name="' + node.name + '"]'; inputs = form.length ? form.find(inputs) : $(inputs); inputs.each(function() { if (this !== node && $.data(this, _iCheck)) { off($(this), state); }; }); }; // Indeterminate state if (indeterminate) { // Add indeterminate state node[state] = true; // Remove checked state if (node[_checked]) { off(input, _checked, 'force'); }; // Checked or disabled state } else { // Add checked or disabled state if (!keep) { node[state] = true; }; // Remove indeterminate state if (checked && node[_indeterminate]) { off(input, _indeterminate, false); }; }; // Trigger callbacks callbacks(input, checked, state, keep); }; // Add proper cursor if (node[_disabled] && !!option(node, _cursor, true)) { parent.find('.' + _iCheckHelper).css(_cursor, 'default'); }; // Add state class parent[_add](specific || option(node, state)); // Remove regular state class parent[_remove](regular || option(node, callback) || ''); }; // Remove checked, disabled or indeterminate state function off(input, state, keep) { var node = input[0], parent = input.parent(), checked = state == _checked, indeterminate = state == _indeterminate, callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled', regular = option(node, callback + capitalize(node[_type])), specific = option(node, state + capitalize(node[_type])); // Prevent unnecessary actions if (node[state] !== false) { // Toggle state if (indeterminate || !keep || keep == 'force') { node[state] = false; }; // Trigger callbacks callbacks(input, checked, callback, keep); }; // Add proper cursor if (!node[_disabled] && !!option(node, _cursor, true)) { parent.find('.' + _iCheckHelper).css(_cursor, 'pointer'); }; // Remove state class parent[_remove](specific || option(node, state) || ''); // Add regular state class parent[_add](regular || option(node, callback)); }; // Remove all traces function tidy(node, callback) { if ($.data(node, _iCheck)) { var input = $(node); // Remove everything except input input.parent().html(input.attr('style', $.data(node, _iCheck).s || '')[_callback](callback || '')); // Unbind events input.off('.i').unwrap(); $(_label + '[for="' + node.id + '"]').add(input.closest(_label)).off('.i'); }; }; // Get some option function option(node, state, regular) { if ($.data(node, _iCheck)) { return $.data(node, _iCheck).o[state + (regular ? '' : 'Class')]; }; }; // Capitalize some string function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); }; // Executable handlers function callbacks(input, checked, callback, keep) { if (!keep) { if (checked) { input[_callback]('ifToggled'); }; input[_callback]('ifChanged')[_callback]('if' + capitalize(callback)); }; }; })(jQuery);
0x6a
trunk/libraries/icheck/jquery.icheck.js
JavaScript
asf20
12,895
<h1>This is an XHR Response</h1> <div id="my_content"> <p>This is sample content brought in.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </div>
0x6a
trunk/libraries/prettyPhoto/xhr_response.html
HTML
asf20
559
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/prettyPhoto/index.html
HTML
asf20
1,319
/* * Inline Form Validation Engine 2.6, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (function($) { "use strict"; var methods = { /** * Kind of the constructor, called before any action * @param {Map} user options */ init: function(options) { var form = this; if (!form.data('jqv') || form.data('jqv') == null ) { options = methods._saveOptions(form, options); // bind all formError elements to close on click $(document).on("click", ".formError", function() { $(this).fadeOut(150, function() { // remove prompt once invisible $("#"+$(this).attr("data-elm")).focus(); $(this).parent('.formErrorOuter').remove(); $(this).remove(); }); }); } return this; }, /** * Attachs jQuery.validationEngine to form.submit and field.blur events * Takes an optional params: a list of options * ie. jQuery("#formID1").validationEngine('attach', {promptPosition : "centerRight"}); */ attach: function(userOptions) { if(!$(this).is("form")) { alert("Sorry, jqv.attach() only applies to a form"); return this; } var form = this; var options; if(userOptions) options = methods._saveOptions(form, userOptions); else options = form.data('jqv'); options.validateAttribute = (form.find("[data-validation-engine*=validate]").length) ? "data-validation-engine" : "class"; if (options.binded) { // bind fields form.find("["+options.validateAttribute+"*=validate]").not("[type=checkbox]").not("[type=radio]").not(".datepicker").bind(options.validationEventTrigger, methods._onFieldEvent); form.find("["+options.validateAttribute+"*=validate][type=checkbox],["+options.validateAttribute+"*=validate][type=radio]").bind("click", methods._onFieldEvent); form.find("["+options.validateAttribute+"*=validate][class*=datepicker]").bind(options.validationEventTrigger,{"delay": 300}, methods._onFieldEvent); } if (options.autoPositionUpdate) { $(window).bind("resize", { "noAnimation": true, "formElem": form }, methods.updatePromptsPosition); } // bind form.submit form.bind("submit", methods._onSubmitEvent); return this; }, /** * Unregisters any bindings that may point to jQuery.validaitonEngine */ detach: function() { if(!$(this).is("form")) { alert("Sorry, jqv.detach() only applies to a form"); return this; } var form = this; var options = form.data('jqv'); // unbind fields form.find("["+options.validateAttribute+"*=validate]").not("[type=checkbox]").unbind(options.validationEventTrigger, methods._onFieldEvent); form.find("["+options.validateAttribute+"*=validate][type=checkbox],[class*=validate][type=radio]").unbind("click", methods._onFieldEvent); // unbind form.submit form.unbind("submit", methods.onAjaxFormComplete); // unbind live fields (kill) form.find("["+options.validateAttribute+"*=validate]").not("[type=checkbox]").off(options.validationEventTrigger, methods._onFieldEvent); form.find("["+options.validateAttribute+"*=validate][type=checkbox]").off("click", methods._onFieldEvent); // unbind form.submit form.off("submit", methods.onAjaxFormComplete); form.removeData('jqv'); if (options.autoPositionUpdate) $(window).unbind("resize", methods.updatePromptsPosition); return this; }, /** * Validates either a form or a list of fields, shows prompts accordingly. * Note: There is no ajax form validation with this method, only field ajax validation are evaluated * * @return true if the form validates, false if it fails */ validate: function() { var element = $(this); var valid = null; if(element.is("form") && !element.hasClass('validating')) { element.addClass('validating'); var options = element.data('jqv'); valid = methods._validateFields(this); // If the form doesn't validate, clear the 'validating' class before the user has a chance to submit again setTimeout(function(){ element.removeClass('validating'); }, 100); if (valid && options.onFormSuccess) { options.onFormSuccess(); } else if (!valid && options.onFormFailure) { options.onFormFailure(); } } else if (element.is('form')) { element.removeClass('validating'); } else { // field validation var form = element.closest('form'); var options = form.data('jqv'); valid = methods._validateField(element, options); if (valid && options.onFieldSuccess) options.onFieldSuccess(); else if (options.onFieldFailure && options.InvalidFields.length > 0) { options.onFieldFailure(); } } return valid; }, /** * Redraw prompts position, useful when you change the DOM state when validating */ updatePromptsPosition: function(event) { if (event && this == window) { var form = event.data.formElem; var noAnimation = event.data.noAnimation; } else var form = $(this.closest('form')); var options = form.data('jqv'); // No option, take default one form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each(function(){ var field = $(this); if (options.prettySelect && field.is(":hidden")) field = form.find("#" + options.usePrefix + field.attr('id') + options.useSuffix); var prompt = methods._getPrompt(field); var promptText = $(prompt).find(".formErrorContent").html(); if(prompt) methods._updatePrompt(field, $(prompt), promptText, undefined, false, options, noAnimation); }); return this; }, /** * Displays a prompt on a element. * Note that the element needs an id! * * @param {String} promptText html text to display type * @param {String} type the type of bubble: 'pass' (green), 'load' (black) anything else (red) * @param {String} possible values topLeft, topRight, bottomLeft, centerRight, bottomRight */ showPrompt: function(promptText, type, promptPosition, showArrow) { var form = this.closest('form'); var options = form.data('jqv'); // No option, take default one if(!options) options = methods._saveOptions(this, options); if(promptPosition) options.promptPosition=promptPosition; options.showArrow = showArrow==true; methods._showPrompt(this, promptText, type, false, options); return this; }, /** * Closes form error prompts, CAN be invidual */ hide: function() { var form = $(this).closest('form'); var options = form.data('jqv'); var fadeDuration = (options && options.fadeDuration) ? options.fadeDuration : 0.3; var closingtag; if($(this).is("form")) { closingtag = "parentForm"+methods._getClassName($(this).attr("id")); } else { closingtag = methods._getClassName($(this).attr("id")) +"formError"; } $('.'+closingtag).fadeTo(fadeDuration, 0.3, function() { $(this).parent('.formErrorOuter').remove(); $(this).remove(); }); return this; }, /** * Closes all error prompts on the page */ hideAll: function() { var form = this; var options = form.data('jqv'); var duration = options ? options.fadeDuration:0.3; $('.formError').fadeTo(duration, 0.3, function() { $(this).parent('.formErrorOuter').remove(); $(this).remove(); }); return this; }, /** * Typically called when user exists a field using tab or a mouse click, triggers a field * validation */ _onFieldEvent: function(event) { var field = $(this); var form = field.closest('form'); var options = form.data('jqv'); options.eventTrigger = "field"; // validate the current field window.setTimeout(function() { methods._validateField(field, options); if (options.InvalidFields.length == 0 && options.onFieldSuccess) { options.onFieldSuccess(); } else if (options.InvalidFields.length > 0 && options.onFieldFailure) { options.onFieldFailure(); } }, (event.data) ? event.data.delay : 0); }, /** * Called when the form is submited, shows prompts accordingly * * @param {jqObject} * form * @return false if form submission needs to be cancelled */ _onSubmitEvent: function() { var form = $(this); var options = form.data('jqv'); options.eventTrigger = "submit"; // validate each field // (- skip field ajax validation, not necessary IF we will perform an ajax form validation) var r=methods._validateFields(form); if (r && options.ajaxFormValidation) { methods._validateFormWithAjax(form, options); // cancel form auto-submission - process with async call onAjaxFormComplete return false; } if(options.onValidationComplete) { // !! ensures that an undefined return is interpreted as return false but allows a onValidationComplete() to possibly return true and have form continue processing return !!options.onValidationComplete(form, r); } return r; }, /** * Return true if the ajax field validations passed so far * @param {Object} options * @return true, is all ajax validation passed so far (remember ajax is async) */ _checkAjaxStatus: function(options) { var status = true; $.each(options.ajaxValidCache, function(key, value) { if (!value) { status = false; // break the each return false; } }); return status; }, /** * Return true if the ajax field is validated * @param {String} fieldid * @param {Object} options * @return true, if validation passed, false if false or doesn't exist */ _checkAjaxFieldStatus: function(fieldid, options) { return options.ajaxValidCache[fieldid] == true; }, /** * Validates form fields, shows prompts accordingly * * @param {jqObject} * form * @param {skipAjaxFieldValidation} * boolean - when set to true, ajax field validation is skipped, typically used when the submit button is clicked * * @return true if form is valid, false if not, undefined if ajax form validation is done */ _validateFields: function(form) { var options = form.data('jqv'); // this variable is set to true if an error is found var errorFound = false; // Trigger hook, start validation form.trigger("jqv.form.validating"); // first, evaluate status of non ajax fields var first_err=null; form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each( function() { var field = $(this); var names = []; if ($.inArray(field.attr('name'), names) < 0) { errorFound |= methods._validateField(field, options); if (errorFound && first_err==null) if (field.is(":hidden") && options.prettySelect) first_err = field = form.find("#" + options.usePrefix + methods._jqSelector(field.attr('id')) + options.useSuffix); else first_err=field; if (options.doNotShowAllErrosOnSubmit) return false; names.push(field.attr('name')); //if option set, stop checking validation rules after one error is found if(options.showOneMessage == true && errorFound){ return false; } } }); // second, check to see if all ajax calls completed ok // errorFound |= !methods._checkAjaxStatus(options); // third, check status and scroll the container accordingly form.trigger("jqv.form.result", [errorFound]); if (errorFound) { if (options.scroll) { var destination=first_err.offset().top; var fixleft = first_err.offset().left; //prompt positioning adjustment support. Usage: positionType:Xshift,Yshift (for ex.: bottomLeft:+20 or bottomLeft:-20,+10) var positionType=options.promptPosition; if (typeof(positionType)=='string' && positionType.indexOf(":")!=-1) positionType=positionType.substring(0,positionType.indexOf(":")); if (positionType!="bottomRight" && positionType!="bottomLeft") { var prompt_err= methods._getPrompt(first_err); if (prompt_err) { destination=prompt_err.offset().top; } } // get the position of the first error, there should be at least one, no need to check this //var destination = form.find(".formError:not('.greenPopup'):first").offset().top; if (options.isOverflown) { var overflowDIV = $(options.overflownDIV); if(!overflowDIV.length) return false; var scrollContainerScroll = overflowDIV.scrollTop(); var scrollContainerPos = -parseInt(overflowDIV.offset().top); destination += scrollContainerScroll + scrollContainerPos - 5; var scrollContainer = $(options.overflownDIV + ":not(:animated)"); scrollContainer.animate({scrollTop: destination}, 1100, function(){ if(options.focusFirstField) first_err.focus(); }); } else { $("body,html").stop().animate({ scrollTop: destination, scrollLeft: fixleft }, 1100, function(){ if(options.focusFirstField) first_err.focus(); }); } } else if(options.focusFirstField) first_err.focus(); return false; } return true; }, /** * This method is called to perform an ajax form validation. * During this process all the (field, value) pairs are sent to the server which returns a list of invalid fields or true * * @param {jqObject} form * @param {Map} options */ _validateFormWithAjax: function(form, options) { var data = form.serialize(); var type = (options.ajaxmethod) ? options.ajaxmethod : "GET"; var url = (options.ajaxFormValidationURL) ? options.ajaxFormValidationURL : form.attr("action"); var dataType = (options.dataType) ? options.dataType : "json"; $.ajax({ type: type, url: url, cache: false, dataType: dataType, data: data, form: form, methods: methods, options: options, beforeSend: function() { return options.onBeforeAjaxFormValidation(form, options); }, error: function(data, transport) { methods._ajaxError(data, transport); }, success: function(json) { if ((dataType == "json") && (json !== true)) { // getting to this case doesn't necessary means that the form is invalid // the server may return green or closing prompt actions // this flag helps figuring it out var errorInForm=false; for (var i = 0; i < json.length; i++) { var value = json[i]; var errorFieldId = value[0]; var errorField = $($("#" + errorFieldId)[0]); // make sure we found the element if (errorField.length == 1) { // promptText or selector var msg = value[2]; // if the field is valid if (value[1] == true) { if (msg == "" || !msg){ // if for some reason, status==true and error="", just close the prompt methods._closePrompt(errorField); } else { // the field is valid, but we are displaying a green prompt if (options.allrules[msg]) { var txt = options.allrules[msg].alertTextOk; if (txt) msg = txt; } methods._showPrompt(errorField, msg, "pass", false, options, true); } } else { // the field is invalid, show the red error prompt errorInForm|=true; if (options.allrules[msg]) { var txt = options.allrules[msg].alertText; if (txt) msg = txt; } methods._showPrompt(errorField, msg, "", false, options, true); } } } options.onAjaxFormComplete(!errorInForm, form, json, options); } else options.onAjaxFormComplete(true, form, json, options); } }); }, /** * Validates field, shows prompts accordingly * * @param {jqObject} * field * @param {Array[String]} * field's validation rules * @param {Map} * user options * @return false if field is valid (It is inversed for *fields*, it return false on validate and true on errors.) */ _validateField: function(field, options, skipAjaxValidation) { if (!field.attr("id")) { field.attr("id", "form-validation-field-" + $.validationEngine.fieldIdCounter); ++$.validationEngine.fieldIdCounter; } if (field.is(":hidden") && !options.prettySelect || field.parent().is(":hidden")) return false; var rulesParsing = field.attr(options.validateAttribute); var getRules = /validate\[(.*)\]/.exec(rulesParsing); if (!getRules) return false; var str = getRules[1]; var rules = str.split(/\[|,|\]/); // true if we ran the ajax validation, tells the logic to stop messing with prompts var isAjaxValidator = false; var fieldName = field.attr("name"); var promptText = ""; var promptType = ""; var required = false; var limitErrors = false; options.isError = false; options.showArrow = true; // If the programmer wants to limit the amount of error messages per field, if (options.maxErrorsPerField > 0) { limitErrors = true; } var form = $(field.closest("form")); // Fix for adding spaces in the rules for (var i in rules) { rules[i] = rules[i].replace(" ", ""); // Remove any parsing errors if (rules[i] === '') { delete rules[i]; } } for (var i = 0, field_errors = 0; i < rules.length; i++) { // If we are limiting errors, and have hit the max, break if (limitErrors && field_errors >= options.maxErrorsPerField) { // If we haven't hit a required yet, check to see if there is one in the validation rules for this // field and that it's index is greater or equal to our current index if (!required) { var have_required = $.inArray('required', rules); required = (have_required != -1 && have_required >= i); } break; } var errorMsg = undefined; switch (rules[i]) { case "required": required = true; errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._required); break; case "custom": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._custom); break; case "groupRequired": // Check is its the first of group, if not, reload validation with first field // AND continue normal validation on present field var classGroup = "["+options.validateAttribute+"*=" +rules[i + 1] +"]"; var firstOfGroup = form.find(classGroup).eq(0); if(firstOfGroup[0] != field[0]){ methods._validateField(firstOfGroup, options, skipAjaxValidation); options.showArrow = true; continue; } errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._groupRequired); if(errorMsg) required = true; options.showArrow = false; break; case "ajax": // AJAX defaults to returning it's loading message errorMsg = methods._ajax(field, rules, i, options); if (errorMsg) { promptType = "load"; } break; case "minSize": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._minSize); break; case "maxSize": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._maxSize); break; case "min": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._min); break; case "max": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._max); break; case "past": errorMsg = methods._getErrorMessage(form, field,rules[i], rules, i, options, methods._past); break; case "future": errorMsg = methods._getErrorMessage(form, field,rules[i], rules, i, options, methods._future); break; case "dateRange": var classGroup = "["+options.validateAttribute+"*=" + rules[i + 1] + "]"; options.firstOfGroup = form.find(classGroup).eq(0); options.secondOfGroup = form.find(classGroup).eq(1); //if one entry out of the pair has value then proceed to run through validation if (options.firstOfGroup[0].value || options.secondOfGroup[0].value) { errorMsg = methods._getErrorMessage(form, field,rules[i], rules, i, options, methods._dateRange); } if (errorMsg) required = true; options.showArrow = false; break; case "dateTimeRange": var classGroup = "["+options.validateAttribute+"*=" + rules[i + 1] + "]"; options.firstOfGroup = form.find(classGroup).eq(0); options.secondOfGroup = form.find(classGroup).eq(1); //if one entry out of the pair has value then proceed to run through validation if (options.firstOfGroup[0].value || options.secondOfGroup[0].value) { errorMsg = methods._getErrorMessage(form, field,rules[i], rules, i, options, methods._dateTimeRange); } if (errorMsg) required = true; options.showArrow = false; break; case "maxCheckbox": field = $(form.find("input[name='" + fieldName + "']")); errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._maxCheckbox); break; case "minCheckbox": field = $(form.find("input[name='" + fieldName + "']")); errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._minCheckbox); break; case "equals": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._equals); break; case "funcCall": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._funcCall); break; case "creditCard": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._creditCard); break; case "condRequired": errorMsg = methods._getErrorMessage(form, field, rules[i], rules, i, options, methods._condRequired); if (errorMsg !== undefined) { required = true; } break; default: } var end_validation = false; // If we were passed back an message object, check what the status was to determine what to do if (typeof errorMsg == "object") { switch (errorMsg.status) { case "_break": end_validation = true; break; // If we have an error message, set errorMsg to the error message case "_error": errorMsg = errorMsg.message; break; // If we want to throw an error, but not show a prompt, return early with true case "_error_no_prompt": return true; break; // Anything else we continue on default: break; } } // If it has been specified that validation should end now, break if (end_validation) { break; } // If we have a string, that means that we have an error, so add it to the error message. if (typeof errorMsg == 'string') { promptText += errorMsg + "<br/>"; options.isError = true; field_errors++; } } // If the rules required is not added, an empty field is not validated if(!required && field.val().length < 1) options.isError = false; // Hack for radio/checkbox group button, the validation go into the // first radio/checkbox of the group var fieldType = field.prop("type"); if ((fieldType == "radio" || fieldType == "checkbox") && form.find("input[name='" + fieldName + "']").size() > 1) { field = $(form.find("input[name='" + fieldName + "'][type!=hidden]:first")); options.showArrow = false; } if(field.is(":hidden") && options.prettySelect) { field = form.find("#" + options.usePrefix + methods._jqSelector(field.attr('id')) + options.useSuffix); } if (options.isError){ methods._showPrompt(field, promptText, promptType, false, options); }else{ if (!isAjaxValidator) methods._closePrompt(field); } if (!isAjaxValidator) { field.trigger("jqv.field.result", [field, options.isError, promptText]); } /* Record error */ var errindex = $.inArray(field[0], options.InvalidFields); if (errindex == -1) { if (options.isError) options.InvalidFields.push(field[0]); } else if (!options.isError) { options.InvalidFields.splice(errindex, 1); } methods._handleStatusCssClasses(field, options); return options.isError; }, /** * Handling css classes of fields indicating result of validation * * @param {jqObject} * field * @param {Array[String]} * field's validation rules * @private */ _handleStatusCssClasses: function(field, options) { /* remove all classes */ if(options.addSuccessCssClassToField) field.removeClass(options.addSuccessCssClassToField); if(options.addFailureCssClassToField) field.removeClass(options.addFailureCssClassToField); /* Add classes */ if (options.addSuccessCssClassToField && !options.isError) field.addClass(options.addSuccessCssClassToField); if (options.addFailureCssClassToField && options.isError) field.addClass(options.addFailureCssClassToField); }, /******************** * _getErrorMessage * * @param form * @param field * @param rule * @param rules * @param i * @param options * @param originalValidationMethod * @return {*} * @private */ _getErrorMessage:function (form, field, rule, rules, i, options, originalValidationMethod) { // If we are using the custon validation type, build the index for the rule. // Otherwise if we are doing a function call, make the call and return the object // that is passed back. var beforeChangeRule = rule; if (rule == "custom") { var custom_validation_type_index = jQuery.inArray(rule, rules)+ 1; var custom_validation_type = rules[custom_validation_type_index]; rule = "custom[" + custom_validation_type + "]"; } var element_classes = (field.attr("data-validation-engine")) ? field.attr("data-validation-engine") : field.attr("class"); var element_classes_array = element_classes.split(" "); // Call the original validation method. If we are dealing with dates or checkboxes, also pass the form var errorMsg; if (rule == "future" || rule == "past" || rule == "maxCheckbox" || rule == "minCheckbox") { errorMsg = originalValidationMethod(form, field, rules, i, options); } else { errorMsg = originalValidationMethod(field, rules, i, options); } // If the original validation method returned an error and we have a custom error message, // return the custom message instead. Otherwise return the original error message. if (errorMsg != undefined) { var custom_message = methods._getCustomErrorMessage($(field), element_classes_array, beforeChangeRule, options); if (custom_message) errorMsg = custom_message; } return errorMsg; }, _getCustomErrorMessage:function (field, classes, rule, options) { var custom_message = false; var validityProp = methods._validityProp[rule]; // If there is a validityProp for this rule, check to see if the field has an attribute for it if (validityProp != undefined) { custom_message = field.attr("data-errormessage-"+validityProp); // If there was an error message for it, return the message if (custom_message != undefined) return custom_message; } custom_message = field.attr("data-errormessage"); // If there is an inline custom error message, return it if (custom_message != undefined) return custom_message; var id = '#' + field.attr("id"); // If we have custom messages for the element's id, get the message for the rule from the id. // Otherwise, if we have custom messages for the element's classes, use the first class message we find instead. if (typeof options.custom_error_messages[id] != "undefined" && typeof options.custom_error_messages[id][rule] != "undefined" ) { custom_message = options.custom_error_messages[id][rule]['message']; } else if (classes.length > 0) { for (var i = 0; i < classes.length && classes.length > 0; i++) { var element_class = "." + classes[i]; if (typeof options.custom_error_messages[element_class] != "undefined" && typeof options.custom_error_messages[element_class][rule] != "undefined") { custom_message = options.custom_error_messages[element_class][rule]['message']; break; } } } if (!custom_message && typeof options.custom_error_messages[rule] != "undefined" && typeof options.custom_error_messages[rule]['message'] != "undefined"){ custom_message = options.custom_error_messages[rule]['message']; } return custom_message; }, _validityProp: { "required": "value-missing", "custom": "custom-error", "groupRequired": "value-missing", "ajax": "custom-error", "minSize": "range-underflow", "maxSize": "range-overflow", "min": "range-underflow", "max": "range-overflow", "past": "type-mismatch", "future": "type-mismatch", "dateRange": "type-mismatch", "dateTimeRange": "type-mismatch", "maxCheckbox": "range-overflow", "minCheckbox": "range-underflow", "equals": "pattern-mismatch", "funcCall": "custom-error", "creditCard": "pattern-mismatch", "condRequired": "value-missing" }, /** * Required validation * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _required: function(field, rules, i, options) { switch (field.prop("type")) { case "text": case "password": case "textarea": case "file": case "select-one": case "select-multiple": default: if (! $.trim(field.val()) || field.val() == field.attr("data-validation-placeholder") || field.val() == field.attr("placeholder")) return options.allrules[rules[i]].alertText; break; case "radio": case "checkbox": var form = field.closest("form"); var name = field.attr("name"); if (form.find("input[name='" + name + "']:checked").size() == 0) { if (form.find("input[name='" + name + "']:visible").size() == 1) return options.allrules[rules[i]].alertTextCheckboxe; else return options.allrules[rules[i]].alertTextCheckboxMultiple; } break; } }, /** * Validate that 1 from the group field is required * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _groupRequired: function(field, rules, i, options) { var classGroup = "["+options.validateAttribute+"*=" +rules[i + 1] +"]"; var isValid = false; // Check all fields from the group field.closest("form").find(classGroup).each(function(){ if(!methods._required($(this), rules, i, options)){ isValid = true; return false; } }); if(!isValid) { return options.allrules[rules[i]].alertText; } }, /** * Validate rules * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _custom: function(field, rules, i, options) { var customRule = rules[i + 1]; var rule = options.allrules[customRule]; var fn; if(!rule) { alert("jqv:custom rule not found - "+customRule); return; } if(rule["regex"]) { var ex=rule.regex; if(!ex) { alert("jqv:custom regex not found - "+customRule); return; } var pattern = new RegExp(ex); if (!pattern.test(field.val())) return options.allrules[customRule].alertText; } else if(rule["func"]) { fn = rule["func"]; if (typeof(fn) !== "function") { alert("jqv:custom parameter 'function' is no function - "+customRule); return; } if (!fn(field, rules, i, options)) return options.allrules[customRule].alertText; } else { alert("jqv:custom type not allowed "+customRule); return; } }, /** * Validate custom function outside of the engine scope * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _funcCall: function(field, rules, i, options) { var functionName = rules[i + 1]; var fn; if(functionName.indexOf('.') >-1) { var namespaces = functionName.split('.'); var scope = window; while(namespaces.length) { scope = scope[namespaces.shift()]; } fn = scope; } else fn = window[functionName] || options.customFunctions[functionName]; if (typeof(fn) == 'function') return fn(field, rules, i, options); }, /** * Field match * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _equals: function(field, rules, i, options) { var equalsField = rules[i + 1]; if (field.val() != $("#" + equalsField).val()) return options.allrules.equals.alertText; }, /** * Check the maximum size (in characters) * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _maxSize: function(field, rules, i, options) { var max = rules[i + 1]; var len = field.val().length; if (len > max) { var rule = options.allrules.maxSize; return rule.alertText + max + rule.alertText2; } }, /** * Check the minimum size (in characters) * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _minSize: function(field, rules, i, options) { var min = rules[i + 1]; var len = field.val().length; if (len < min) { var rule = options.allrules.minSize; return rule.alertText + min + rule.alertText2; } }, /** * Check number minimum value * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _min: function(field, rules, i, options) { var min = parseFloat(rules[i + 1]); var len = parseFloat(field.val()); if (len < min) { var rule = options.allrules.min; if (rule.alertText2) return rule.alertText + min + rule.alertText2; return rule.alertText + min; } }, /** * Check number maximum value * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _max: function(field, rules, i, options) { var max = parseFloat(rules[i + 1]); var len = parseFloat(field.val()); if (len >max ) { var rule = options.allrules.max; if (rule.alertText2) return rule.alertText + max + rule.alertText2; //orefalo: to review, also do the translations return rule.alertText + max; } }, /** * Checks date is in the past * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _past: function(form, field, rules, i, options) { var p=rules[i + 1]; var fieldAlt = $(form.find("input[name='" + p.replace(/^#+/, '') + "']")); var pdate; if (p.toLowerCase() == "now") { pdate = new Date(); } else if (undefined != fieldAlt.val()) { if (fieldAlt.is(":disabled")) return; pdate = methods._parseDate(fieldAlt.val()); } else { pdate = methods._parseDate(p); } var vdate = methods._parseDate(field.val()); if (vdate > pdate ) { var rule = options.allrules.past; if (rule.alertText2) return rule.alertText + methods._dateToString(pdate) + rule.alertText2; return rule.alertText + methods._dateToString(pdate); } }, /** * Checks date is in the future * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _future: function(form, field, rules, i, options) { var p=rules[i + 1]; var fieldAlt = $(form.find("input[name='" + p.replace(/^#+/, '') + "']")); var pdate; if (p.toLowerCase() == "now") { pdate = new Date(); } else if (undefined != fieldAlt.val()) { if (fieldAlt.is(":disabled")) return; pdate = methods._parseDate(fieldAlt.val()); } else { pdate = methods._parseDate(p); } var vdate = methods._parseDate(field.val()); if (vdate < pdate ) { var rule = options.allrules.future; if (rule.alertText2) return rule.alertText + methods._dateToString(pdate) + rule.alertText2; return rule.alertText + methods._dateToString(pdate); } }, /** * Checks if valid date * * @param {string} date string * @return a bool based on determination of valid date */ _isDate: function (value) { var dateRegEx = new RegExp(/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/); return dateRegEx.test(value); }, /** * Checks if valid date time * * @param {string} date string * @return a bool based on determination of valid date time */ _isDateTime: function (value){ var dateTimeRegEx = new RegExp(/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/); return dateTimeRegEx.test(value); }, //Checks if the start date is before the end date //returns true if end is later than start _dateCompare: function (start, end) { return (new Date(start.toString()) < new Date(end.toString())); }, /** * Checks date range * * @param {jqObject} first field name * @param {jqObject} second field name * @return an error string if validation failed */ _dateRange: function (field, rules, i, options) { //are not both populated if ((!options.firstOfGroup[0].value && options.secondOfGroup[0].value) || (options.firstOfGroup[0].value && !options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } //are not both dates if (!methods._isDate(options.firstOfGroup[0].value) || !methods._isDate(options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } //are both dates but range is off if (!methods._dateCompare(options.firstOfGroup[0].value, options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } }, /** * Checks date time range * * @param {jqObject} first field name * @param {jqObject} second field name * @return an error string if validation failed */ _dateTimeRange: function (field, rules, i, options) { //are not both populated if ((!options.firstOfGroup[0].value && options.secondOfGroup[0].value) || (options.firstOfGroup[0].value && !options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } //are not both dates if (!methods._isDateTime(options.firstOfGroup[0].value) || !methods._isDateTime(options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } //are both dates but range is off if (!methods._dateCompare(options.firstOfGroup[0].value, options.secondOfGroup[0].value)) { return options.allrules[rules[i]].alertText + options.allrules[rules[i]].alertText2; } }, /** * Max number of checkbox selected * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _maxCheckbox: function(form, field, rules, i, options) { var nbCheck = rules[i + 1]; var groupname = field.attr("name"); var groupSize = form.find("input[name='" + groupname + "']:checked").size(); if (groupSize > nbCheck) { options.showArrow = false; if (options.allrules.maxCheckbox.alertText2) return options.allrules.maxCheckbox.alertText + " " + nbCheck + " " + options.allrules.maxCheckbox.alertText2; return options.allrules.maxCheckbox.alertText; } }, /** * Min number of checkbox selected * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _minCheckbox: function(form, field, rules, i, options) { var nbCheck = rules[i + 1]; var groupname = field.attr("name"); var groupSize = form.find("input[name='" + groupname + "']:checked").size(); if (groupSize < nbCheck) { options.showArrow = false; return options.allrules.minCheckbox.alertText + " " + nbCheck + " " + options.allrules.minCheckbox.alertText2; } }, /** * Checks that it is a valid credit card number according to the * Luhn checksum algorithm. * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _creditCard: function(field, rules, i, options) { //spaces and dashes may be valid characters, but must be stripped to calculate the checksum. var valid = false, cardNumber = field.val().replace(/ +/g, '').replace(/-+/g, ''); var numDigits = cardNumber.length; if (numDigits >= 14 && numDigits <= 16 && parseInt(cardNumber) > 0) { var sum = 0, i = numDigits - 1, pos = 1, digit, luhn = new String(); do { digit = parseInt(cardNumber.charAt(i)); luhn += (pos++ % 2 == 0) ? digit * 2 : digit; } while (--i >= 0) for (i = 0; i < luhn.length; i++) { sum += parseInt(luhn.charAt(i)); } valid = sum % 10 == 0; } if (!valid) return options.allrules.creditCard.alertText; }, /** * Ajax field validation * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return nothing! the ajax validator handles the prompts itself */ _ajax: function(field, rules, i, options) { var errorSelector = rules[i + 1]; var rule = options.allrules[errorSelector]; var extraData = rule.extraData; var extraDataDynamic = rule.extraDataDynamic; var data = { "fieldId" : field.attr("id"), "fieldValue" : field.val() }; if (typeof extraData === "object") { $.extend(data, extraData); } else if (typeof extraData === "string") { var tempData = extraData.split("&"); for(var i = 0; i < tempData.length; i++) { var values = tempData[i].split("="); if (values[0] && values[0]) { data[values[0]] = values[1]; } } } if (extraDataDynamic) { var tmpData = []; var domIds = String(extraDataDynamic).split(","); for (var i = 0; i < domIds.length; i++) { var id = domIds[i]; if ($(id).length) { var inputValue = field.closest("form").find(id).val(); var keyValue = id.replace('#', '') + '=' + escape(inputValue); data[id.replace('#', '')] = inputValue; } } } // If a field change event triggered this we want to clear the cache for this ID if (options.eventTrigger == "field") { delete(options.ajaxValidCache[field.attr("id")]); } // If there is an error or if the the field is already validated, do not re-execute AJAX if (!options.isError && !methods._checkAjaxFieldStatus(field.attr("id"), options)) { $.ajax({ type: options.ajaxFormValidationMethod, url: rule.url, cache: false, dataType: "json", data: data, field: field, rule: rule, methods: methods, options: options, beforeSend: function() {}, error: function(data, transport) { methods._ajaxError(data, transport); }, success: function(json) { // asynchronously called on success, data is the json answer from the server var errorFieldId = json[0]; //var errorField = $($("#" + errorFieldId)[0]); var errorField = $("#"+ errorFieldId +"']").eq(0); // make sure we found the element if (errorField.length == 1) { var status = json[1]; // read the optional msg from the server var msg = json[2]; if (!status) { // Houston we got a problem - display an red prompt options.ajaxValidCache[errorFieldId] = false; options.isError = true; // resolve the msg prompt if(msg) { if (options.allrules[msg]) { var txt = options.allrules[msg].alertText; if (txt) { msg = txt; } } } else msg = rule.alertText; methods._showPrompt(errorField, msg, "", true, options); } else { options.ajaxValidCache[errorFieldId] = true; // resolves the msg prompt if(msg) { if (options.allrules[msg]) { var txt = options.allrules[msg].alertTextOk; if (txt) { msg = txt; } } } else msg = rule.alertTextOk; // see if we should display a green prompt if (msg) methods._showPrompt(errorField, msg, "pass", true, options); else methods._closePrompt(errorField); // If a submit form triggered this, we want to re-submit the form if (options.eventTrigger == "submit") field.closest("form").submit(); } } errorField.trigger("jqv.field.result", [errorField, options.isError, msg]); } }); return rule.alertTextLoad; } }, /** * Common method to handle ajax errors * * @param {Object} data * @param {Object} transport */ _ajaxError: function(data, transport) { if(data.status == 0 && transport == null) alert("The page is not served from a server! ajax call failed"); else if(typeof console != "undefined") console.log("Ajax error: " + data.status + " " + transport); }, /** * date -> string * * @param {Object} date */ _dateToString: function(date) { return date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate(); }, /** * Parses an ISO date * @param {String} d */ _parseDate: function(d) { var dateParts = d.split("-"); if(dateParts==d) dateParts = d.split("/"); return new Date(dateParts[0], (dateParts[1] - 1) ,dateParts[2]); }, /** * Builds or updates a prompt with the given information * * @param {jqObject} field * @param {String} promptText html text to display type * @param {String} type the type of bubble: 'pass' (green), 'load' (black) anything else (red) * @param {boolean} ajaxed - use to mark fields than being validated with ajax * @param {Map} options user options */ _showPrompt: function(field, promptText, type, ajaxed, options, ajaxform) { var prompt = methods._getPrompt(field); // The ajax submit errors are not see has an error in the form, // When the form errors are returned, the engine see 2 bubbles, but those are ebing closed by the engine at the same time // Because no error was found befor submitting if(ajaxform) prompt = false; if (prompt) methods._updatePrompt(field, prompt, promptText, type, ajaxed, options); else methods._buildPrompt(field, promptText, type, ajaxed, options); }, /** * Builds and shades a prompt for the given field. * * @param {jqObject} field * @param {String} promptText html text to display type * @param {String} type the type of bubble: 'pass' (green), 'load' (black) anything else (red) * @param {boolean} ajaxed - use to mark fields than being validated with ajax * @param {Map} options user options */ _buildPrompt: function(field, promptText, type, ajaxed, options) { // create the prompt var prompt = $('<div>'); prompt.addClass(methods._getClassName(field.attr("id")) + "formError"); // add a class name to identify the parent form of the prompt prompt.addClass("parentForm"+methods._getClassName(field.parents('form').attr("id"))); prompt.addClass("formError"); prompt.addClass("erc").attr("data-elm",field.attr("id")); switch (type) { case "pass": prompt.addClass("greenPopup"); break; case "load": prompt.addClass("blackPopup"); break; default: /* it has error */ //alert("unknown popup type:"+type); } if (ajaxed) prompt.addClass("ajaxed"); // create the prompt content var promptContent = $('<div>').addClass("formErrorContent").html(promptText).appendTo(prompt); // create the css arrow pointing at the field // note that there is no triangle on max-checkbox and radio if (options.showArrow) { var arrow = $('<div>').addClass("formErrorArrow"); //prompt positioning adjustment support. Usage: positionType:Xshift,Yshift (for ex.: bottomLeft:+20 or bottomLeft:-20,+10) var positionType=field.data("promptPosition") || options.promptPosition; if (typeof(positionType)=='string') { var pos=positionType.indexOf(":"); if(pos!=-1) positionType=positionType.substring(0,pos); } if(options.isPopup) switch (positionType) { case "bottomLeft": case "bottomRight": prompt.find(".formErrorContent").before(arrow); arrow.addClass("formErrorArrowBottom").html('<div class="line1"><!-- --></div><div class="line2"><!-- --></div><div class="line3"><!-- --></div><div class="line4"><!-- --></div><div class="line5"><!-- --></div><div class="line6"><!-- --></div><div class="line7"><!-- --></div><div class="line8"><!-- --></div><div class="line9"><!-- --></div><div class="line10"><!-- --></div>'); break; case "topLeft": case "topRight": arrow.html('<div class="line10"><!-- --></div><div class="line9"><!-- --></div><div class="line8"><!-- --></div><div class="line7"><!-- --></div><div class="line6"><!-- --></div><div class="line5"><!-- --></div><div class="line4"><!-- --></div><div class="line3"><!-- --></div><div class="line2"><!-- --></div><div class="line1"><!-- --></div>'); prompt.append(arrow); break; } } // Modify z-indexes for jquery ui if (field.closest('.ui-dialog').length) prompt.addClass('formErrorInsideDialog'); // add prompt after or before if(field.attr("data-putto")){ if($(field.attr("data-putto").length>0)) prompt.appendTo($(field.attr("data-putto"))); else field.after(prompt); }else{ field.after(prompt); } field.addClass("erb"); if(options.isPopup){ prompt.css({ "opacity": 0, 'position':'absolute' }); var pos = methods._calculatePosition(field, prompt, options); prompt.css({ "top": pos.callerTopPosition, "left": pos.callerleftPosition, "marginTop": pos.marginTopSize, "opacity": 0 }).data("callerField", field); }else{ prompt.css({ "opacity": 0 }); } if (options.autoHidePrompt) { setTimeout(function(){ prompt.animate({ "opacity": 0 },function(){ prompt.closest('.formErrorOuter').remove(); prompt.remove(); field.removeClass("erb"); }); }, options.autoHideDelay); } return prompt.animate({ "opacity": 0.87 }); }, /** * Updates the prompt text field - the field for which the prompt * @param {jqObject} field * @param {String} promptText html text to display type * @param {String} type the type of bubble: 'pass' (green), 'load' (black) anything else (red) * @param {boolean} ajaxed - use to mark fields than being validated with ajax * @param {Map} options user options */ _updatePrompt: function(field, prompt, promptText, type, ajaxed, options, noAnimation) { if (prompt) { if (typeof type !== "undefined") { if (type == "pass") prompt.addClass("greenPopup"); else prompt.removeClass("greenPopup"); if (type == "load") prompt.addClass("blackPopup"); else prompt.removeClass("blackPopup"); } if (ajaxed) prompt.addClass("ajaxed"); else prompt.removeClass("ajaxed"); prompt.find(".formErrorContent").html(promptText); var pos = methods._calculatePosition(field, prompt, options); if(options.isPopup){ var css = { "top": pos.callerTopPosition, "left": pos.callerleftPosition, "marginTop": pos.marginTopSize }; if (noAnimation) prompt.css(css); else prompt.animate(css); } } }, /** * Closes the prompt associated with the given field * * @param {jqObject} * field */ _closePrompt: function(field) { var prompt = methods._getPrompt(field); if (prompt) prompt.fadeTo("fast", 0, function() { prompt.parent('.formErrorOuter').remove(); prompt.remove(); field.removeClass("erb"); }); }, closePrompt: function(field) { return methods._closePrompt(field); }, /** * Returns the error prompt matching the field if any * * @param {jqObject} * field * @return undefined or the error prompt (jqObject) */ _getPrompt: function(field) { var formId = $(field).closest('form').attr('id'); var className = methods._getClassName(field.attr("id")) + "formError"; var match = $("." + methods._escapeExpression(className) + '.parentForm' + formId)[0]; if (match) return $(match); }, /** * Returns the escapade classname * * @param {selector} * className */ _escapeExpression: function (selector) { return selector.replace(/([#;&,\.\+\*\~':"\!\^$\[\]\(\)=>\|])/g, "\\$1"); }, /** * returns true if we are in a RTLed document * * @param {jqObject} field */ isRTL: function(field) { var $document = $(document); var $body = $('body'); var rtl = (field && field.hasClass('rtl')) || (field && (field.attr('dir') || '').toLowerCase()==='rtl') || $document.hasClass('rtl') || ($document.attr('dir') || '').toLowerCase()==='rtl' || $body.hasClass('rtl') || ($body.attr('dir') || '').toLowerCase()==='rtl'; return Boolean(rtl); }, /** * Calculates prompt position * * @param {jqObject} * field * @param {jqObject} * the prompt * @param {Map} * options * @return positions */ _calculatePosition: function (field, promptElmt, options) { var promptTopPosition, promptleftPosition, marginTopSize; var fieldWidth = field.width(); var fieldLeft = field.position().left; var fieldTop = field.position().top; var fieldHeight = field.height(); var promptHeight = promptElmt.height(); // is the form contained in an overflown container? promptTopPosition = promptleftPosition = 0; // compensation for the arrow marginTopSize = -promptHeight; //prompt positioning adjustment support //now you can adjust prompt position //usage: positionType:Xshift,Yshift //for example: // bottomLeft:+20 means bottomLeft position shifted by 20 pixels right horizontally // topRight:20, -15 means topRight position shifted by 20 pixels to right and 15 pixels to top //You can use +pixels, - pixels. If no sign is provided than + is default. var positionType=field.data("promptPosition") || options.promptPosition; var shift1=""; var shift2=""; var shiftX=0; var shiftY=0; if (typeof(positionType)=='string') { //do we have any position adjustments ? if (positionType.indexOf(":")!=-1) { shift1=positionType.substring(positionType.indexOf(":")+1); positionType=positionType.substring(0,positionType.indexOf(":")); //if any advanced positioning will be needed (percents or something else) - parser should be added here //for now we use simple parseInt() //do we have second parameter? if (shift1.indexOf(",") !=-1) { shift2=shift1.substring(shift1.indexOf(",") +1); shift1=shift1.substring(0,shift1.indexOf(",")); shiftY=parseInt(shift2); if (isNaN(shiftY)) shiftY=0; }; shiftX=parseInt(shift1); if (isNaN(shift1)) shift1=0; }; }; switch (positionType) { default: case "topRight": promptleftPosition += fieldLeft + fieldWidth - 30; promptTopPosition += fieldTop; break; case "topLeft": promptTopPosition += fieldTop; promptleftPosition += fieldLeft; break; case "centerRight": promptTopPosition = fieldTop+4; marginTopSize = 0; promptleftPosition= fieldLeft + field.outerWidth(true)+5; break; case "centerLeft": promptleftPosition = fieldLeft - (promptElmt.width() + 2); promptTopPosition = fieldTop+4; marginTopSize = 0; break; case "bottomLeft": promptTopPosition = fieldTop + field.height() + 5; marginTopSize = 0; promptleftPosition = fieldLeft; break; case "bottomRight": promptleftPosition = fieldLeft + fieldWidth - 30; promptTopPosition = fieldTop + field.height() + 5; marginTopSize = 0; }; //apply adjusments if any promptleftPosition += shiftX; promptTopPosition += shiftY; return { "callerTopPosition": promptTopPosition + "px", "callerleftPosition": promptleftPosition + "px", "marginTopSize": marginTopSize + "px" }; }, /** * Saves the user options and variables in the form.data * * @param {jqObject} * form - the form where the user option should be saved * @param {Map} * options - the user options * @return the user options (extended from the defaults) */ _saveOptions: function(form, options) { // is there a language localisation ? if ($.validationEngineLanguage) var allRules = $.validationEngineLanguage.allRules; else $.error("jQuery.validationEngine rules are not loaded, plz add localization files to the page"); // --- Internals DO NOT TOUCH or OVERLOAD --- // validation rules and i18 $.validationEngine.defaults.allrules = allRules; var userOptions = $.extend(true,{},$.validationEngine.defaults,options); form.data('jqv', userOptions); return userOptions; }, /** * Removes forbidden characters from class name * @param {String} className */ _getClassName: function(className) { if(className) return className.replace(/:/g, "_").replace(/\./g, "_"); }, /** * Escape special character for jQuery selector * http://totaldev.com/content/escaping-characters-get-valid-jquery-id * @param {String} selector */ _jqSelector: function(str){ return str.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1'); }, /** * Conditionally required field * * @param {jqObject} field * @param {Array[String]} rules * @param {int} i rules index * @param {Map} * user options * @return an error string if validation failed */ _condRequired: function(field, rules, i, options) { var idx, dependingField; for(idx = (i + 1); idx < rules.length; idx++) { dependingField = jQuery("#" + rules[idx]).first(); /* Use _required for determining wether dependingField has a value. * There is logic there for handling all field types, and default value; so we won't replicate that here */ if (dependingField.length && methods._required(dependingField, ["required"], 0, options) == undefined) { /* We now know any of the depending fields has a value, * so we can validate this field as per normal required code */ return methods._required(field, ["required"], 0, options); } } } }; /** * Plugin entry point. * You may pass an action as a parameter or a list of options. * if none, the init and attach methods are being called. * Remember: if you pass options, the attached method is NOT called automatically * * @param {String} * method (optional) action */ $.fn.validationEngine = function(method) { var form = $(this); if(!form[0]) return form; // stop here if the form does not exist if (typeof(method) == 'string' && method.charAt(0) != '_' && methods[method]) { // make sure init is called once if(method != "showPrompt" && method != "hide" && method != "hideAll") methods.init.apply(form); return methods[method].apply(form, Array.prototype.slice.call(arguments, 1)); } else if (typeof method == 'object' || !method) { // default constructor with or without arguments methods.init.apply(form, arguments); return methods.attach.apply(form); } else { $.error('Method ' + method + ' does not exist in jQuery.validationEngine'); } }; // LEAK GLOBAL OPTIONS $.validationEngine= {fieldIdCounter: 0,defaults:{ // Name of the event triggering field validation validationEventTrigger: "blur", // Automatically scroll viewport to the first error scroll: true, // Focus on the first input focusFirstField:true, // Opening box position, possible locations are: topLeft, // topRight, bottomLeft, centerRight, bottomRight promptPosition: "topRight", bindMethod:"bind", // internal, automatically set to true when it parse a _ajax rule inlineAjax: false, // if set to true, the form data is sent asynchronously via ajax to the form.action url (get) ajaxFormValidation: false, // The url to send the submit ajax validation (default to action) ajaxFormValidationURL: false, // HTTP method used for ajax validation ajaxFormValidationMethod: 'get', // Ajax form validation callback method: boolean onComplete(form, status, errors, options) // retuns false if the form.submit event needs to be canceled. onAjaxFormComplete: $.noop, // called right before the ajax call, may return false to cancel onBeforeAjaxFormValidation: $.noop, // Stops form from submitting and execute function assiciated with it onValidationComplete: false, // Used when you have a form fields too close and the errors messages are on top of other disturbing viewing messages doNotShowAllErrosOnSubmit: false, // Object where you store custom messages to override the default error messages custom_error_messages:{}, // true if you want to vind the input fields binded: true, // set to true, when the prompt arrow needs to be displayed showArrow: true, // did one of the validation fail ? kept global to stop further ajax validations isError: false, // Limit how many displayed errors a field can have maxErrorsPerField: false, // Caches field validation status, typically only bad status are created. // the array is used during ajax form validation to detect issues early and prevent an expensive submit ajaxValidCache: {}, // Auto update prompt position after window resize autoPositionUpdate: false, InvalidFields: [], onFieldSuccess: false, onFieldFailure: false, onFormSuccess: false, onFormFailure: false, addSuccessCssClassToField: false, addFailureCssClassToField: false, // Auto-hide prompt autoHidePrompt: false, // Delay before auto-hide autoHideDelay: 10000, // Fade out duration while hiding the validations fadeDuration: 0.3, // Use Prettify select library prettySelect: false, // Custom ID uses prefix usePrefix: "", // Custom ID uses suffix useSuffix: "", // Only show one message per error prompt showOneMessage: false }}; $(function(){$.validationEngine.defaults.promptPosition = methods.isRTL()?'topLeft':"topRight"}); })(jQuery);
0x6a
trunk/libraries/validation-engine/jquery.validationEngine.js
JavaScript
asf20
67,436
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "none", "alertText": "* This field is required", "alertTextCheckboxMultiple": "* Please select an option", "alertTextCheckboxe": "* This checkbox is required", "alertTextDateRange": "* Both date range fields are required" }, "requiredInFunction": { "func": function(field, rules, i, options){ return (field.val() === "test") ? true : false; }, "alertText": "* Field must equal test" }, "dateRange": { "regex": "none", "alertText": "* Invalid ", "alertText2": "Date Range" }, "dateTimeRange": { "regex": "none", "alertText": "* Invalid ", "alertText2": "Date Time Range" }, "minSize": { "regex": "none", "alertText": "* Minimum ", "alertText2": " characters allowed" }, "maxSize": { "regex": "none", "alertText": "* Maximum ", "alertText2": " characters allowed" }, "groupRequired": { "regex": "none", "alertText": "* You must fill one of the following fields" }, "min": { "regex": "none", "alertText": "* Minimum value is " }, "max": { "regex": "none", "alertText": "* Maximum value is " }, "past": { "regex": "none", "alertText": "* Date prior to " }, "future": { "regex": "none", "alertText": "* Date past " }, "maxCheckbox": { "regex": "none", "alertText": "* Maximum ", "alertText2": " options allowed" }, "minCheckbox": { "regex": "none", "alertText": "* Please select ", "alertText2": " options" }, "equals": { "regex": "none", "alertText": "* Fields do not match" }, "creditCard": { "regex": "none", "alertText": "* Invalid credit card number" }, "phone": { // credit: jquery.h5validate.js / orefalo "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/, "alertText": "* Invalid phone number" }, "alias":{ "regex": /^[0-9a-z\-]+$/, "alertText": "* Invalid alias" }, "email": { // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/, "alertText": "* Invalid email address" }, "integer": { "regex": /^[\-\+]?\d+$/, "alertText": "* Not a valid integer" }, "number": { // Number, including positive, negative, and floating decimal. credit: orefalo "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/, "alertText": "* Invalid floating decimal number" }, "date": { // Check if date is valid by leap year "func": function (field) { var pattern = new RegExp(/^(\d{4})[\/\-\.](0?[1-9]|1[012])[\/\-\.](0?[1-9]|[12][0-9]|3[01])$/); var match = pattern.exec(field.val()); if (match === null) return false; var year = match[1]; var month = match[2]*1; var day = match[3]*1; var date = new Date(year, month - 1, day); // because months starts from 0. return (date.getFullYear() === year && date.getMonth() === (month - 1) && date.getDate() === day); }, "alertText": "* Invalid date, must be in YYYY-MM-DD format" }, "ipv4": { "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/, "alertText": "* Invalid IP address" }, "url": { "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, "alertText": "* Invalid URL" }, "onlyNumberSp": { "regex": /^[0-9\ ]+$/, "alertText": "* Numbers only" }, "onlyLetterSp": { "regex": /^[a-zA-Z\ \']+$/, "alertText": "* Letters only" }, "onlyLetterNumber": { "regex": /^[0-9a-zA-Z]+$/, "alertText": "* No special characters allowed" }, // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings "ajaxUserCall": { "url": "ajaxValidateFieldUser", // you may want to pass extra data on the ajax call "extraData": "name=eric", "alertText": "* This user is already taken", "alertTextLoad": "* Validating, please wait" }, "ajaxUserCallPhp": { "url": "phpajax/ajaxValidateFieldUser.php", // you may want to pass extra data on the ajax call "extraData": "name=eric", // if you provide an "alertTextOk", it will show as a green prompt when the field validates "alertTextOk": "* This username is available", "alertText": "* This user is already taken", "alertTextLoad": "* Validating, please wait" }, "ajaxNameCall": { // remote json service location "url": "ajaxValidateFieldName", // error "alertText": "* This name is already taken", // if you provide an "alertTextOk", it will show as a green prompt when the field validates "alertTextOk": "* This name is available", // speaks by itself "alertTextLoad": "* Validating, please wait" }, "ajaxNameCallPhp": { // remote json service location "url": "phpajax/ajaxValidateFieldName.php", // error "alertText": "* This name is already taken", // speaks by itself "alertTextLoad": "* Validating, please wait" }, "validate2fields": { "alertText": "* Please input HELLO" }, //tls warning:homegrown not fielded "dateFormat":{ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/, "alertText": "* Invalid Date" }, //tls warning:homegrown not fielded "dateTimeFormat": { "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/, "alertText": "* Invalid Date or Date Format", "alertText2": "Expected Format: ", "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM or ", "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM" } }; } }; $.validationEngineLanguage.newLang(); })(jQuery);
0x6a
trunk/libraries/validation-engine/jquery.validationEngine-en.js
JavaScript
asf20
10,772
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "none", "alertText": "* Trường này bắt buộc", "alertTextCheckboxMultiple": "* Vui lòng chọn một tùy chọn", "alertTextCheckboxe": "* Checkbox này bắt buộc", "alertTextDateRange": "* Cả hai trường ngày tháng đều bắt buộc" }, "requiredInFunction": { "func": function(field, rules, i, options){ return (field.val() == "test") ? true : false; }, "alertText": "* Giá trị của trường phải là test" }, "minNumber": { "func": function(field, rules, i, options){ console.log(rules.maxNumber); return (isNaN(field.val()) || parseInt(field.val())<rules[2]) ? false : true; }, "alertText": "* Giá trị không hợp lệ." }, "maxNumber": { "func": function(field, rules, i, options){ console.log(options.allrules); return (isNaN(field.val()) || parseInt(field.val())>rules[2]) ? false : true; }, "alertText": "* Giá trị không hợp lệ." }, "dateRange": { "regex": "none", "alertText": "* Không đúng ", "alertText2": "Khoảng ngày tháng" }, "dateTimeRange": { "regex": "none", "alertText": "* Không đúng ", "alertText2": "Khoảng thời gian" }, "minSize": { "regex": "none", "alertText": "* Tối thiểu là ", "alertText2": " ký tự" }, "maxSize": { "regex": "none", "alertText": "* Tối đa là ", "alertText2": " ký tự" }, "groupRequired": { "regex": "none", "alertText": "* Bạn phải điền một trong những trường sau" }, "min": { "regex": "none", "alertText": "* Giá trị nhỏ nhất là " }, "max": { "regex": "none", "alertText": "* Giá trị lớn nhất là " }, "past": { "regex": "none", "alertText": "* Ngày kéo dài tới " }, "future": { "regex": "none", "alertText": "* Ngày đã qua " }, "maxCheckbox": { "regex": "none", "alertText": "* Tối đa ", "alertText2": " số tùy chọn được cho phép" }, "minCheckbox": { "regex": "none", "alertText": "* Vui lòng chọn ", "alertText2": " các tùy chọn" }, "equals": { "regex": "none", "alertText": "* Giá trị các trường không giống nhau" }, "creditCard": { "regex": "none", "alertText": "* Số thẻ tín dụng sai" }, "phone": { // credit: jquery.h5validate.js / orefalo "regex": /^([\+][0-9]{1,3}[\ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9\ \.\-\/]{3,20})((x|ext|extension)[\ ]?[0-9]{1,4})?$/, "alertText": "* Số điện thoại sai" }, "email": { // HTML5 compatible email regex ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html# e-mail-state-%28type=email%29 ) "regex": /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/, "alertText": "* Địa chỉ thư điện tử sai" }, "integer": { "regex": /^[\-\+]?\d+$/, "alertText": "* Không đúng là số nguyên" }, "number": { // Number, including positive, negative, and floating decimal. credit: orefalo "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/, "alertText": "* Không đúng là số" }, "date": { "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/, "alertText": "* Ngày sai, phải có định dạng YYYY-MM-DD" }, "ipv4": { "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/, "alertText": "* Địa chỉ IP sai" }, "url": { "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, "alertText": "* URL sai" }, "phone_":{ "regex": /^[0-9\ ,(,),.,\-,+]{7,20}$/, "alertText": "* Định dạng phone sai" }, "alias":{ "regex": /^[0-9a-z\-]+$/, "alertText": "* Định dạng alias sai" }, "onlyNumberSp": { "regex": /^[0-9\ ]+$/, "alertText": "* Chỉ điền số" }, "onlyLetterSp": { "regex": /^[a-zA-Z\ \']+$/, "alertText": "* Chỉ điền chữ" }, "onlyLetterNumber": { "regex": /^[0-9a-zA-Z]+$/, "alertText": "* Không được chứa ký tự đặc biệt" }, // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings "ajaxUserCall": { "url": "ajaxValidateFieldUser", // you may want to pass extra data on the ajax call "extraData": "name=eric", "alertText": "* Tên này được dùng", "alertTextLoad": "* Đang xác nhận, vui lòng chờ" }, "ajaxUserCallPhp": { "url": "phpajax/ajaxValidateFieldUser.php", // you may want to pass extra data on the ajax call "extraData": "name=eric", // if you provide an "alertTextOk", it will show as a green prompt when the field validates "alertTextOk": "* Tên người dùng này có thể dùng được", "alertText": "* Tên người dùng này đã được sử dụng", "alertTextLoad": "* Đang xác nhận, vui lòng chờ" }, "ajaxNameCall": { // remote json service location "url": "ajaxValidateFieldName", // error "alertText": "* Tên này được dùng", // if you provide an "alertTextOk", it will show as a green prompt when the field validates "alertTextOk": "* Tên này có thể dùng", // speaks by itself "alertTextLoad": "* Đang xác nhận, vui lòng chờ" }, "ajaxNameCallPhp": { // remote json service location "url": "phpajax/ajaxValidateFieldName.php", // error "alertText": "* Tên này được dùng", // speaks by itself "alertTextLoad": "* Đang xác nhận, vui lòng chờ" }, "validate2fields": { "alertText": "* Vui lòng nhập vào HELLO" }, //tls warning:homegrown not fielded "dateFormat":{ "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/, "alertText": "* Ngày sai" }, //tls warning:homegrown not fielded "dateTimeFormat": { "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/, "alertText": "* Ngày sai hoặc định dạng ngày sai", "alertText2": "Định dạng đúng là: ", "alertText3": "mm/dd/yyyy hh:mm:ss AM|PM hay ", "alertText4": "yyyy-mm-dd hh:mm:ss AM|PM" } }; } }; $.validationEngineLanguage.newLang(); })(jQuery);
0x6a
trunk/libraries/validation-engine/jquery.validationEngine-vi.js
JavaScript
asf20
11,536
/* Z-INDEX */ .formError { z-index: 1999; } .formError .formErrorContent { z-index: 991; } .formError .formErrorArrow { z-index: 996; } .formErrorInsideDialog.formError { z-index: 5000; } .formErrorInsideDialog.formError .formErrorContent { z-index: 5001; } .formErrorInsideDialog.formError .formErrorArrow { z-index: 5006; } .inputContainer { position: relative; float: left; } .formError { /*position: absolute; top: 300px; left: 300px; display: block; cursor: pointer;*/ } .ajaxSubmit { padding: 20px; background: #55ea55; border: 1px solid #999; display: none } .formError .formErrorContent { width: 100%; background: #ee0101; position:relative; color: #fff; min-width: 180px; font-size: 11px; border: 1px solid #ddd; box-shadow: 0 0 6px #000; -moz-box-shadow: 0 0 6px #000; -webkit-box-shadow: 0 0 6px #000; padding: 4px 8px 4px 8px; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; } .greenPopup .formErrorContent { background: #33be40; } .blackPopup .formErrorContent { background: #393939; color: #FFF; } .formError .formErrorArrow { width: 15px; margin: -2px 0 0 13px; position:relative; } body[dir='rtl'] .formError .formErrorArrow, body.rtl .formError .formErrorArrow { margin: -2px 13px 0 0; } .formError .formErrorArrowBottom { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; margin: 0px 0 0 12px; top:2px; } .formError .formErrorArrow div { border-left: 2px solid #ddd; border-right: 2px solid #ddd; box-shadow: 0 2px 3px #444; -moz-box-shadow: 0 2px 3px #444; -webkit-box-shadow: 0 2px 3px #444; font-size: 0px; height: 1px; background: #ee0101; margin: 0 auto; line-height: 0; font-size: 0; display: block; } .formError .formErrorArrowBottom div { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; } .greenPopup .formErrorArrow div { background: #33be40; } .blackPopup .formErrorArrow div { background: #393939; color: #FFF; } .formError .formErrorArrow .line10 { width: 15px; border: none; } .formError .formErrorArrow .line9 { width: 13px; border: none; } .formError .formErrorArrow .line8 { width: 11px; } .formError .formErrorArrow .line7 { width: 9px; } .formError .formErrorArrow .line6 { width: 7px; } .formError .formErrorArrow .line5 { width: 5px; } .formError .formErrorArrow .line4 { width: 3px; } .formError .formErrorArrow .line3 { width: 1px; border-left: 2px solid #ddd; border-right: 2px solid #ddd; border-bottom: 0 solid #ddd; } .formError .formErrorArrow .line2 { width: 3px; border: none; background: #ddd; } .formError .formErrorArrow .line1 { width: 1px; border: none; background: #ddd; }
0x6a
trunk/libraries/validation-engine/validationEngine.jquery.css
CSS
asf20
2,874
;/***************************************************************** * Japanese language file for jquery.validationEngine.js (ver2.0) * * Transrator: tomotomo ( Tomoyuki SUGITA ) * http://tomotomoSnippet.blogspot.com/ * Licenced under the MIT Licence *******************************************************************/ (function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { // Add your regex rules here, you can take telephone as an example "regex": "none", "alertText": "* 必須項目です", "alertTextCheckboxMultiple": "* 選択してください", "alertTextCheckboxe": "* チェックボックスをチェックしてください" }, "requiredInFunction": { "func": function(field, rules, i, options){ return (field.val() == "test") ? true : false; }, "alertText": "* Field must equal test" }, "minSize": { "regex": "none", "alertText": "* ", "alertText2": "文字以上にしてください" }, "groupRequired": { "regex": "none", "alertText": "* You must fill one of the following fields" }, "maxSize": { "regex": "none", "alertText": "* ", "alertText2": "文字以下にしてください" }, "min": { "regex": "none", "alertText": "* ", "alertText2": " 以上の数値にしてください" }, "max": { "regex": "none", "alertText": "* ", "alertText2": " 以下の数値にしてください" }, "past": { "regex": "none", "alertText": "* ", "alertText2": " より過去の日付にしてください" }, "future": { "regex": "none", "alertText": "* ", "alertText2": " より最近の日付にしてください" }, "maxCheckbox": { "regex": "none", "alertText": "* チェックしすぎです" }, "minCheckbox": { "regex": "none", "alertText": "* ", "alertText2": "つ以上チェックしてください" }, "equals": { "regex": "none", "alertText": "* 入力された値が一致しません" }, "creditCard": { "regex": "none", "alertText": "* 無効なクレジットカード番号" }, "phone": { // credit: jquery.h5validate.js / orefalo "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/, "alertText": "* 電話番号が正しくありません" }, "email": { // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, "alertText": "* メールアドレスが正しくありません" }, "integer": { "regex": /^[\-\+]?\d+$/, "alertText": "* 整数を半角で入力してください" }, "number": { // Number, including positive, negative, and floating decimal. credit: orefalo "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/, "alertText": "* 数値を半角で入力してください" }, "date": { "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/, "alertText": "* 日付は半角で YYYY-MM-DD の形式で入力してください" }, "ipv4": { "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/, "alertText": "* IPアドレスが正しくありません" }, "url": { "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, "alertText": "* URLが正しくありません" }, "onlyNumberSp": { "regex": /^[0-9\ ]+$/, "alertText": "* 半角数字で入力してください" }, "onlyLetterSp": { "regex": /^[a-zA-Z\ \']+$/, "alertText": "* 半角アルファベットで入力してください" }, "onlyLetterNumber": { "regex": /^[0-9a-zA-Z]+$/, "alertText": "* 半角英数で入力してください" }, // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings "ajaxUserCall": { "url": "ajaxValidateFieldUser", // you may want to pass extra data on the ajax call "extraData": "name=eric", "alertText": "* This user is already taken", "alertTextLoad": "* Validating, please wait" }, "ajaxNameCall": { // remote json service location "url": "ajaxValidateFieldName", // error "alertText": "* This name is already taken", // if you provide an "alertTextOk", it will show as a green prompt when the field validates "alertTextOk": "* This name is available", // speaks by itself "alertTextLoad": "* Validating, please wait" }, "validate2fields": { "alertText": "* 『HELLO』と入力してください" } }; } }; $.validationEngineLanguage.newLang(); })(jQuery);
0x6a
trunk/libraries/validation-engine/jquery.validationEngine-ja.js
JavaScript
asf20
9,016
(function($){ $.fn.validationEngineLanguage = function(){ }; $.validationEngineLanguage = { newLang: function(){ $.validationEngineLanguage.allRules = { "required": { "regex": "none", "alertText": "* Ce champ est requis", "alertTextCheckboxMultiple": "* Choisir une option", "alertTextCheckboxe": "* Cette option est requise" }, "requiredInFunction": { "func": function(field, rules, i, options){ return (field.val() == "test") ? true : false; }, "alertText": "* Field must equal test" }, "minSize": { "regex": "none", "alertText": "* Minimum ", "alertText2": " caractères requis" }, "groupRequired": { "regex": "none", "alertText": "* Vous devez remplir un des champs suivant" }, "maxSize": { "regex": "none", "alertText": "* Maximum ", "alertText2": " caractères requis" }, "min": { "regex": "none", "alertText": "* Valeur minimum requise " }, "max": { "regex": "none", "alertText": "* Valeur maximum requise " }, "past": { "regex": "none", "alertText": "* Date antérieure au " }, "future": { "regex": "none", "alertText": "* Date postérieure au " }, "maxCheckbox": { "regex": "none", "alertText": "* Nombre max de choix excédé" }, "minCheckbox": { "regex": "none", "alertText": "* Veuillez choisir ", "alertText2": " options" }, "equals": { "regex": "none", "alertText": "* Votre champ n'est pas identique" }, "creditCard": { "regex": "none", "alertText": "* Numéro de carte bancaire valide" }, "phone": { // credit: jquery.h5validate.js / orefalo "regex": /^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/, "alertText": "* Numéro de téléphone invalide" }, "email": { // Shamelessly lifted from Scott Gonzalez via the Bassistance Validation plugin http://projects.scottsplayground.com/email_address_validation/ "regex": /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, "alertText": "* Adresse email invalide" }, "integer": { "regex": /^[\-\+]?\d+$/, "alertText": "* Nombre entier invalide" }, "number": { // Number, including positive, negative, and floating decimal. credit: orefalo "regex": /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/, "alertText": "* Nombre flottant invalide" }, "date": { "regex": /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/, "alertText": "* Date invalide, format YYYY-MM-DD requis" }, "ipv4": { "regex": /^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/, "alertText": "* Adresse IP invalide" }, "url": { "regex": /^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i, "alertText": "* URL invalide" }, "onlyNumberSp": { "regex": /^[0-9\ ]+$/, "alertText": "* Seuls les chiffres sont acceptés" }, "onlyLetterSp": { "regex": /^[a-zA-Z\u00C0-\u00D6\u00D9-\u00F6\u00F9-\u00FD\ \']+$/, "alertText": "* Seules les lettres sont acceptées" }, "onlyLetterNumber": { "regex": /^[0-9a-zA-Z\u00C0-\u00D6\u00D9-\u00F6\u00F9-\u00FD]+$/, "alertText": "* Aucun caractère spécial n'est accepté" }, // --- CUSTOM RULES -- Those are specific to the demos, they can be removed or changed to your likings "ajaxUserCall": { "url": "ajaxValidateFieldUser", "extraData": "name=eric", "alertTextLoad": "* Chargement, veuillez attendre", "alertText": "* Ce nom est déjà pris" }, "ajaxNameCall": { "url": "ajaxValidateFieldName", "alertText": "* Ce nom est déjà pris", "alertTextOk": "*Ce nom est disponible", "alertTextLoad": "* Chargement, veuillez attendre" }, "validate2fields": { "alertText": "Veuillez taper le mot HELLO" } }; } }; $.validationEngineLanguage.newLang(); })(jQuery);
0x6a
trunk/libraries/validation-engine/jquery.validationEngine-fr.js
JavaScript
asf20
7,850
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/validation-engine/index.html
HTML
asf20
1,319
<!DOCTYPE html> <html> <head> <title>Bootstrap 101 Template</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <link href="css/bootstrap.css" rel="stylesheet" media="screen"> <style> .show-grid [class^="span"] { padding-top: 10px; padding-bottom: 10px; background-color: #eee; background-color: rgba(86,61,124,.15); } </style> </head> <body> <div class="navbar"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="#">Title</a> <div class="nav-collapse collapse navbar-responsive-collapse"> <ul class="nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li class="nav-header">Nav header</li> <li><a href="#">Separated link</a></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <form class="navbar-search pull-left" action=""> <input type="text" class="search-query span2" placeholder="Search"> </form> <ul class="nav pull-right"> <li><a href="#">Link</a></li> <li class="divider-vertical"></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div><!-- /.nav-collapse --> </div> </div><!-- /navbar-inner --> </div><!-- /navbar --> <div class="container"> <div class="row-fluid"> <ul class="thumbnails"> <li class="span4"> <div class="thumbnail"> <img class="span12" src="http://getbootstrap.com/2.3.2/assets/img/example-sites/kippt.png" alt=""> <div class="caption"> <h3>Thumbnail label</h3> <p class="hidden-phone">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p> <input type="text" /> </p> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </li> <li class="span4"> <div class="thumbnail"> <img class="span12" src="http://getbootstrap.com/2.3.2/assets/img/example-sites/gathercontent.png" alt=""> <div class="caption"> <h3>Thumbnail label</h3> <p class="hidden-phone">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </li> <li class="span4"> <div class="thumbnail"> <img class="span12" src="http://getbootstrap.com/2.3.2/assets/img/example-sites/soundready.png" alt=""> <div class="caption"> <h3>Thumbnail label</h3> <p class="hidden-phone">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </li> </ul> </div> </div> <div class="container"> <h1>Bootstrap 3 Panels</h1> <div class="panel"> <!-- Default panel contents --> <div class="panel-heading">Panel heading</div> <p>Panel with List Group</p> <!-- List group --> <ul class="list-group list-group-flush"> <li class="list-group-item">Cras justo odio</li> <li class="list-group-item">Dapibus ac facilisis in</li> <li class="list-group-item">Morbi leo risus</li> <li class="list-group-item">Porta ac consectetur ac</li> <li class="list-group-item">Vestibulum at eros</li> </ul> </div> <div class="panel panel-primary"> <div class="panel-heading">Bootstrap 3 - Panel Primary</div> Panel content goes here.. </div> <div class="panel panel-success"> <div class="panel-heading">Heading</div> Panel Success </div> <div class="panel panel-warning"> <div class="panel-heading">Heading</div> Panel Warning </div> <div class="panel panel-danger"> <div class="panel-heading">Heading</div> Panel Danger </div> <div class="panel panel-info"> <div class="panel-heading">Heading</div> Panel Info </div> <hr> <a href="http://bootply.com/61518">Edit with Bootply</a> <hr> </div> <div class="container" style="max-width: -960px;padding: 0 -15px"> <div class="row show-grid"> <div class="span3 col-lg-3 visible-desktop"> <div class="bs-sidebar"> <ul class="nav bs-sidenav"> <li> <a href="#download">Download Bootstrap</a> <ul class="nav"> <li><a href="#download-options">Download options</a></li> <li><a href="#download-cdn">Bootstrap CDN</a></li> </ul> </li> <li> <a href="#whats-included">What's included</a> </li> <li> <a href="#template">Basic template</a> </li> <li> <a href="#browsers">Browser support</a> </li> <li> <a href="#license-faqs">License FAQs</a> </li> <li> <a href="#customizing">Customizing Bootstrap</a> </li> </ul> </div> </div> <div class="span9 col-lg-9 panel"> abc </div> </div> </div> <h1>Hello, world!...</h1> <h2>Hello, world!...</h2> <h3>Hello, world!...</h3> <h4>Hello, world!...</h4> <h5>Hello, world!...</h5> <h6>.Hello, world!..</h6> <script src="http://code.jquery.com/jquery.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html>
0x6a
trunk/libraries/bootstrap/bt/index.html
HTML
asf20
8,775
/* Respond.js unit tests - based on qUnit */ window.onload = function(){ if( !window.opener ){ document.documentElement.className = "launcher"; document.getElementById("launcher").innerHTML = '<p>Tests must run in a popup window. <a href="suite.html" id="suitelink">Open test suite</a></p>'; document.getElementById( "suitelink" ).onclick = function(){ window.open( location.href + "?" + Math.random(), 'win', 'width=800,height=600,scrollbars=1,resizable=1' ); return false; }; } else { var testElem = document.getElementById("testelem"); //check if a particular style has applied properly function widthApplied( val ){ return testElem.offsetWidth === val; } function heightApplied( val ){ return testElem.offsetHeight === val; } // A short snippet for detecting versions of IE in JavaScript - author: @padolsey var ie = (function(){ var undef, v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', all[0] ); return v > 4 ? v : undef; }()); window.moveTo(0,0); /* TESTS HERE */ asyncTest( 'Styles not nested in media queries apply as expected', function() { window.resizeTo(200,600); setTimeout(function(){ ok( widthApplied( 50 ), "testelem is 50px wide when window is 200px wide" ); start(); }, 900); }); asyncTest( 'styles within min-width media queries apply properly', function() { window.resizeTo(520,600); setTimeout(function(){ ok( widthApplied( 150 ), 'testelem is 150px wide when window is 500px wide' ); start(); }, 900); }); // This test is for a feature in IE7 and up if( ie >= 7 ){ asyncTest( "attribute selectors still work (where supported) after respond runs its course", function() { window.resizeTo(520,600); setTimeout(function(){ ok( heightApplied( 200 ), "testelem is 200px tall when window is 500px wide" ); start(); }, 900); }); } asyncTest( 'styles within max-width media queries apply properly', function() { window.resizeTo(300,600); setTimeout(function(){ ok( heightApplied( 150 ), 'testelem is 150px tall when window is under 480px wide' ); start(); }, 900); }); asyncTest( 'min and max-width media queries that use EM units apply properly', function() { window.resizeTo(560,600); setTimeout(function(){ ok( widthApplied( 12 ), 'testelem is 150px wide when window is 500px wide' ); start(); }, 900); }); asyncTest( "styles within a min-width media query with an \"only\" keyword apply properly", function() { window.resizeTo(650,600); setTimeout(function(){ ok( widthApplied( 250 ), "testelem is 250px wide when window is 650px wide" ); start(); }, 900); }); asyncTest( "styles within a media query with a one true query among other false queries apply properly", function() { window.resizeTo(800,600); setTimeout(function(){ ok( widthApplied( 350 ), "testelem is 350px wide when window is 750px wide" ); start(); }, 900); }); asyncTest( "Styles within a false media query do not apply", function() { window.resizeTo(800,600); setTimeout(function(){ ok( !widthApplied( 500 ), "testelem is not 500px wide when window is 800px wide" ); start(); }, 900); }); asyncTest( "stylesheets with a media query in a media attribute apply when they should", function() { window.resizeTo(1300,600); setTimeout(function(){ ok( widthApplied( 16 ), "testelem is 16px wide when window is 1300px wide" ); start(); }, 900); }); asyncTest( "stylesheets with an EM-based media query in a media attribute apply when they should", function() { window.resizeTo(1500,600); setTimeout(function(){ ok( widthApplied( 25 ), "testelem is 25px wide when window is > 1400px wide" ); start(); }, 900); }); } };
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/tests.js
JavaScript
asf20
4,069
.launcher #qunit-testrunner-toolbar, .launcher #qunit-userAgent, .launcher #qunit-tests, .launcher #qunit-testresult { display: none; } .launcher #launcher { font: 1.5em/1 bold Helvetica, sans-serif; } #testelem { width: 50px; display: block; } /* a style like this should never apply in IE. If it does, tests will fail */ @media screen and (view-mode: minimized) { #testelem { width: 10px !important; } } /*styles for 480px and up - media type purposely left out here to test that in the process */ @media (min-width: 480px) { #testelem { width: 150px; } #testelem[class=foo] { height: 200px; } } /*styles for 500px and under*/ @media screen and (max-width: 460px) { #testelem { height: 150px; } } /* testing em unit support - 33em should be 528px and 35em should be 560px in IE with default font settings */ @media screen and (min-width: 33em) and (max-width: 35em) { #testelem { width: 12px; } } /*styles for 620px and up */ @media only screen and (min-width: 620px) { #testelem { width: 250px; } } /*styles for 760px and up */ @media only print, only screen and (min-width: 760px) { #testelem { width: 350px; } } /*styles for print that shouldn't apply */ @media only print and (min-width: 800px) { #testelem { width: 500px; } }
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/test.css
CSS
asf20
1,283
/* this stylesheet was referenced via a link that had a media attr defined it should only apply on window > 1200px */ #testelem { width: 16px; }
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/test2.css
CSS
asf20
145
/* this stylesheet was referenced via a link that had a media attr defined it should only apply on screen > 87.5em (1400px) */ #testelem { width: 25px; }
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/test3.css
CSS
asf20
154
/** * QUnit v1.3.0pre - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2011 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ /** Font Family and Sizes */ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; } #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; } #qunit-tests { font-size: smaller; } /** Resets */ #qunit-tests, #qunit-tests ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult { margin: 0; padding: 0; } /** Header */ #qunit-header { padding: 0.5em 0 0.5em 1em; color: #8699a4; background-color: #0d3349; font-size: 1.5em; line-height: 1em; font-weight: normal; border-radius: 15px 15px 0 0; -moz-border-radius: 15px 15px 0 0; -webkit-border-top-right-radius: 15px; -webkit-border-top-left-radius: 15px; } #qunit-header a { text-decoration: none; color: #c2ccd1; } #qunit-header a:hover, #qunit-header a:focus { color: #fff; } #qunit-banner { height: 5px; } #qunit-testrunner-toolbar { padding: 0.5em 0 0.5em 2em; color: #5E740B; background-color: #eee; } #qunit-userAgent { padding: 0.5em 0 0.5em 2.5em; background-color: #2b81af; color: #fff; text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; } /** Tests: Pass/Fail */ #qunit-tests { list-style-position: inside; } #qunit-tests li { padding: 0.4em 0.5em 0.4em 2.5em; border-bottom: 1px solid #fff; list-style-position: inside; } #qunit-tests.hidepass li.pass, #qunit-tests.hidepass li.running { display: none; } #qunit-tests li strong { cursor: pointer; } #qunit-tests li a { padding: 0.5em; color: #c2ccd1; text-decoration: none; } #qunit-tests li a:hover, #qunit-tests li a:focus { color: #000; } #qunit-tests ol { margin-top: 0.5em; padding: 0.5em; background-color: #fff; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; box-shadow: inset 0px 2px 13px #999; -moz-box-shadow: inset 0px 2px 13px #999; -webkit-box-shadow: inset 0px 2px 13px #999; } #qunit-tests table { border-collapse: collapse; margin-top: .2em; } #qunit-tests th { text-align: right; vertical-align: top; padding: 0 .5em 0 0; } #qunit-tests td { vertical-align: top; } #qunit-tests pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; } #qunit-tests del { background-color: #e0f2be; color: #374e0c; text-decoration: none; } #qunit-tests ins { background-color: #ffcaca; color: #500; text-decoration: none; } /*** Test Counts */ #qunit-tests b.counts { color: black; } #qunit-tests b.passed { color: #5E740B; } #qunit-tests b.failed { color: #710909; } #qunit-tests li li { margin: 0.5em; padding: 0.4em 0.5em 0.4em 0.5em; background-color: #fff; border-bottom: none; list-style-position: inside; } /*** Passing Styles */ #qunit-tests li li.pass { color: #5E740B; background-color: #fff; border-left: 26px solid #C6E746; } #qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } #qunit-tests .pass .test-name { color: #366097; } #qunit-tests .pass .test-actual, #qunit-tests .pass .test-expected { color: #999999; } #qunit-banner.qunit-pass { background-color: #C6E746; } /*** Failing Styles */ #qunit-tests li li.fail { color: #710909; background-color: #fff; border-left: 26px solid #EE5757; white-space: pre; } #qunit-tests > li:last-child { border-radius: 0 0 15px 15px; -moz-border-radius: 0 0 15px 15px; -webkit-border-bottom-right-radius: 15px; -webkit-border-bottom-left-radius: 15px; } #qunit-tests .fail { color: #000000; background-color: #EE5757; } #qunit-tests .fail .test-name, #qunit-tests .fail .module-name { color: #000000; } #qunit-tests .fail .test-actual { color: #EE5757; } #qunit-tests .fail .test-expected { color: green; } #qunit-banner.qunit-fail { background-color: #EE5757; } /** Result */ #qunit-testresult { padding: 0.5em 0.5em 0.5em 2.5em; color: #2b81af; background-color: #D2E0E6; border-bottom: 1px solid white; } /** Fixture */ #qunit-fixture { position: absolute; top: -10000px; left: -10000px; }
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/qunit/qunit.css
CSS
asf20
4,519
/** * QUnit v1.3.0pre - A JavaScript Unit Testing Framework * * http://docs.jquery.com/QUnit * * Copyright (c) 2011 John Resig, Jörn Zaefferer * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ (function(window) { var defined = { setTimeout: typeof window.setTimeout !== "undefined", sessionStorage: (function() { try { return !!sessionStorage.getItem; } catch(e) { return false; } })() }; var testId = 0, toString = Object.prototype.toString, hasOwn = Object.prototype.hasOwnProperty; var Test = function(name, testName, expected, testEnvironmentArg, async, callback) { this.name = name; this.testName = testName; this.expected = expected; this.testEnvironmentArg = testEnvironmentArg; this.async = async; this.callback = callback; this.assertions = []; }; Test.prototype = { init: function() { var tests = id("qunit-tests"); if (tests) { var b = document.createElement("strong"); b.innerHTML = "Running " + this.name; var li = document.createElement("li"); li.appendChild( b ); li.className = "running"; li.id = this.id = "test-output" + testId++; tests.appendChild( li ); } }, setup: function() { if (this.module != config.previousModule) { if ( config.previousModule ) { runLoggingCallbacks('moduleDone', QUnit, { name: config.previousModule, failed: config.moduleStats.bad, passed: config.moduleStats.all - config.moduleStats.bad, total: config.moduleStats.all } ); } config.previousModule = this.module; config.moduleStats = { all: 0, bad: 0 }; runLoggingCallbacks( 'moduleStart', QUnit, { name: this.module } ); } config.current = this; this.testEnvironment = extend({ setup: function() {}, teardown: function() {} }, this.moduleTestEnvironment); if (this.testEnvironmentArg) { extend(this.testEnvironment, this.testEnvironmentArg); } runLoggingCallbacks( 'testStart', QUnit, { name: this.testName, module: this.module }); // allow utility functions to access the current test environment // TODO why?? QUnit.current_testEnvironment = this.testEnvironment; try { if ( !config.pollution ) { saveGlobal(); } this.testEnvironment.setup.call(this.testEnvironment); } catch(e) { QUnit.ok( false, "Setup failed on " + this.testName + ": " + e.message ); } }, run: function() { config.current = this; if ( this.async ) { QUnit.stop(); } if ( config.notrycatch ) { this.callback.call(this.testEnvironment); return; } try { this.callback.call(this.testEnvironment); } catch(e) { fail("Test " + this.testName + " died, exception and test follows", e, this.callback); QUnit.ok( false, "Died on test #" + (this.assertions.length + 1) + ": " + e.message + " - " + QUnit.jsDump.parse(e) ); // else next test will carry the responsibility saveGlobal(); // Restart the tests if they're blocking if ( config.blocking ) { QUnit.start(); } } }, teardown: function() { config.current = this; try { this.testEnvironment.teardown.call(this.testEnvironment); checkPollution(); } catch(e) { QUnit.ok( false, "Teardown failed on " + this.testName + ": " + e.message ); } }, finish: function() { config.current = this; if ( this.expected != null && this.expected != this.assertions.length ) { QUnit.ok( false, "Expected " + this.expected + " assertions, but " + this.assertions.length + " were run" ); } var good = 0, bad = 0, tests = id("qunit-tests"); config.stats.all += this.assertions.length; config.moduleStats.all += this.assertions.length; if ( tests ) { var ol = document.createElement("ol"); for ( var i = 0; i < this.assertions.length; i++ ) { var assertion = this.assertions[i]; var li = document.createElement("li"); li.className = assertion.result ? "pass" : "fail"; li.innerHTML = assertion.message || (assertion.result ? "okay" : "failed"); ol.appendChild( li ); if ( assertion.result ) { good++; } else { bad++; config.stats.bad++; config.moduleStats.bad++; } } // store result when possible if ( QUnit.config.reorder && defined.sessionStorage ) { if (bad) { sessionStorage.setItem("qunit-" + this.module + "-" + this.testName, bad); } else { sessionStorage.removeItem("qunit-" + this.module + "-" + this.testName); } } if (bad == 0) { ol.style.display = "none"; } var b = document.createElement("strong"); b.innerHTML = this.name + " <b class='counts'>(<b class='failed'>" + bad + "</b>, <b class='passed'>" + good + "</b>, " + this.assertions.length + ")</b>"; var a = document.createElement("a"); a.innerHTML = "Rerun"; a.href = QUnit.url({ filter: getText([b]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") }); addEvent(b, "click", function() { var next = b.nextSibling.nextSibling, display = next.style.display; next.style.display = display === "none" ? "block" : "none"; }); addEvent(b, "dblclick", function(e) { var target = e && e.target ? e.target : window.event.srcElement; if ( target.nodeName.toLowerCase() == "span" || target.nodeName.toLowerCase() == "b" ) { target = target.parentNode; } if ( window.location && target.nodeName.toLowerCase() === "strong" ) { window.location = QUnit.url({ filter: getText([target]).replace(/\([^)]+\)$/, "").replace(/(^\s*|\s*$)/g, "") }); } }); var li = id(this.id); li.className = bad ? "fail" : "pass"; li.removeChild( li.firstChild ); li.appendChild( b ); li.appendChild( a ); li.appendChild( ol ); } else { for ( var i = 0; i < this.assertions.length; i++ ) { if ( !this.assertions[i].result ) { bad++; config.stats.bad++; config.moduleStats.bad++; } } } try { QUnit.reset(); } catch(e) { fail("reset() failed, following Test " + this.testName + ", exception and reset fn follows", e, QUnit.reset); } runLoggingCallbacks( 'testDone', QUnit, { name: this.testName, module: this.module, failed: bad, passed: this.assertions.length - bad, total: this.assertions.length } ); }, queue: function() { var test = this; synchronize(function() { test.init(); }); function run() { // each of these can by async synchronize(function() { test.setup(); }); synchronize(function() { test.run(); }); synchronize(function() { test.teardown(); }); synchronize(function() { test.finish(); }); } // defer when previous test run passed, if storage is available var bad = QUnit.config.reorder && defined.sessionStorage && +sessionStorage.getItem("qunit-" + this.module + "-" + this.testName); if (bad) { run(); } else { synchronize(run, true); }; } }; var QUnit = { // call on start of module test to prepend name to all tests module: function(name, testEnvironment) { config.currentModule = name; config.currentModuleTestEnviroment = testEnvironment; }, asyncTest: function(testName, expected, callback) { if ( arguments.length === 2 ) { callback = expected; expected = null; } QUnit.test(testName, expected, callback, true); }, test: function(testName, expected, callback, async) { var name = '<span class="test-name">' + escapeInnerText(testName) + '</span>', testEnvironmentArg; if ( arguments.length === 2 ) { callback = expected; expected = null; } // is 2nd argument a testEnvironment? if ( expected && typeof expected === 'object') { testEnvironmentArg = expected; expected = null; } if ( config.currentModule ) { name = '<span class="module-name">' + config.currentModule + "</span>: " + name; } if ( !validTest(config.currentModule + ": " + testName) ) { return; } var test = new Test(name, testName, expected, testEnvironmentArg, async, callback); test.module = config.currentModule; test.moduleTestEnvironment = config.currentModuleTestEnviroment; test.queue(); }, /** * Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through. */ expect: function(asserts) { config.current.expected = asserts; }, /** * Asserts true. * @example ok( "asdfasdf".length > 5, "There must be at least 5 chars" ); */ ok: function(a, msg) { a = !!a; var details = { result: a, message: msg }; msg = escapeInnerText(msg); runLoggingCallbacks( 'log', QUnit, details ); config.current.assertions.push({ result: a, message: msg }); }, /** * Checks that the first two arguments are equal, with an optional message. * Prints out both actual and expected values. * * Prefered to ok( actual == expected, message ) * * @example equal( format("Received {0} bytes.", 2), "Received 2 bytes." ); * * @param Object actual * @param Object expected * @param String message (optional) */ equal: function(actual, expected, message) { QUnit.push(expected == actual, actual, expected, message); }, notEqual: function(actual, expected, message) { QUnit.push(expected != actual, actual, expected, message); }, deepEqual: function(actual, expected, message) { QUnit.push(QUnit.equiv(actual, expected), actual, expected, message); }, notDeepEqual: function(actual, expected, message) { QUnit.push(!QUnit.equiv(actual, expected), actual, expected, message); }, strictEqual: function(actual, expected, message) { QUnit.push(expected === actual, actual, expected, message); }, notStrictEqual: function(actual, expected, message) { QUnit.push(expected !== actual, actual, expected, message); }, raises: function(block, expected, message) { var actual, ok = false; if (typeof expected === 'string') { message = expected; expected = null; } try { block(); } catch (e) { actual = e; } if (actual) { // we don't want to validate thrown error if (!expected) { ok = true; // expected is a regexp } else if (QUnit.objectType(expected) === "regexp") { ok = expected.test(actual); // expected is a constructor } else if (actual instanceof expected) { ok = true; // expected is a validation function which returns true is validation passed } else if (expected.call({}, actual) === true) { ok = true; } } QUnit.ok(ok, message); }, start: function(count) { config.semaphore -= count || 1; if (config.semaphore > 0) { // don't start until equal number of stop-calls return; } if (config.semaphore < 0) { // ignore if start is called more often then stop config.semaphore = 0; } // A slight delay, to avoid any current callbacks if ( defined.setTimeout ) { window.setTimeout(function() { if (config.semaphore > 0) { return; } if ( config.timeout ) { clearTimeout(config.timeout); } config.blocking = false; process(true); }, 13); } else { config.blocking = false; process(true); } }, stop: function(count) { config.semaphore += count || 1; config.blocking = true; if ( config.testTimeout && defined.setTimeout ) { clearTimeout(config.timeout); config.timeout = window.setTimeout(function() { QUnit.ok( false, "Test timed out" ); config.semaphore = 1; QUnit.start(); }, config.testTimeout); } } }; //We want access to the constructor's prototype (function() { function F(){}; F.prototype = QUnit; QUnit = new F(); //Make F QUnit's constructor so that we can add to the prototype later QUnit.constructor = F; })(); // Backwards compatibility, deprecated QUnit.equals = QUnit.equal; QUnit.same = QUnit.deepEqual; // Maintain internal state var config = { // The queue of tests to run queue: [], // block until document ready blocking: true, // when enabled, show only failing tests // gets persisted through sessionStorage and can be changed in UI via checkbox hidepassed: false, // by default, run previously failed tests first // very useful in combination with "Hide passed tests" checked reorder: true, // by default, modify document.title when suite is done altertitle: true, urlConfig: ['noglobals', 'notrycatch'], //logging callback queues begin: [], done: [], log: [], testStart: [], testDone: [], moduleStart: [], moduleDone: [] }; // Load paramaters (function() { var location = window.location || { search: "", protocol: "file:" }, params = location.search.slice( 1 ).split( "&" ), length = params.length, urlParams = {}, current; if ( params[ 0 ] ) { for ( var i = 0; i < length; i++ ) { current = params[ i ].split( "=" ); current[ 0 ] = decodeURIComponent( current[ 0 ] ); // allow just a key to turn on a flag, e.g., test.html?noglobals current[ 1 ] = current[ 1 ] ? decodeURIComponent( current[ 1 ] ) : true; urlParams[ current[ 0 ] ] = current[ 1 ]; } } QUnit.urlParams = urlParams; config.filter = urlParams.filter; // Figure out if we're running the tests from a server or not QUnit.isLocal = !!(location.protocol === 'file:'); })(); // Expose the API as global variables, unless an 'exports' // object exists, in that case we assume we're in CommonJS if ( typeof exports === "undefined" || typeof require === "undefined" ) { extend(window, QUnit); window.QUnit = QUnit; } else { extend(exports, QUnit); exports.QUnit = QUnit; } // define these after exposing globals to keep them in these QUnit namespace only extend(QUnit, { config: config, // Initialize the configuration options init: function() { extend(config, { stats: { all: 0, bad: 0 }, moduleStats: { all: 0, bad: 0 }, started: +new Date, updateRate: 1000, blocking: false, autostart: true, autorun: false, filter: "", queue: [], semaphore: 0 }); var tests = id( "qunit-tests" ), banner = id( "qunit-banner" ), result = id( "qunit-testresult" ); if ( tests ) { tests.innerHTML = ""; } if ( banner ) { banner.className = ""; } if ( result ) { result.parentNode.removeChild( result ); } if ( tests ) { result = document.createElement( "p" ); result.id = "qunit-testresult"; result.className = "result"; tests.parentNode.insertBefore( result, tests ); result.innerHTML = 'Running...<br/>&nbsp;'; } }, /** * Resets the test setup. Useful for tests that modify the DOM. * * If jQuery is available, uses jQuery's html(), otherwise just innerHTML. */ reset: function() { if ( window.jQuery ) { jQuery( "#qunit-fixture" ).html( config.fixture ); } else { var main = id( 'qunit-fixture' ); if ( main ) { main.innerHTML = config.fixture; } } }, /** * Trigger an event on an element. * * @example triggerEvent( document.body, "click" ); * * @param DOMElement elem * @param String type */ triggerEvent: function( elem, type, event ) { if ( document.createEvent ) { event = document.createEvent("MouseEvents"); event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, null); elem.dispatchEvent( event ); } else if ( elem.fireEvent ) { elem.fireEvent("on"+type); } }, // Safe object type checking is: function( type, obj ) { return QUnit.objectType( obj ) == type; }, objectType: function( obj ) { if (typeof obj === "undefined") { return "undefined"; // consider: typeof null === object } if (obj === null) { return "null"; } var type = toString.call( obj ).match(/^\[object\s(.*)\]$/)[1] || ''; switch (type) { case 'Number': if (isNaN(obj)) { return "nan"; } else { return "number"; } case 'String': case 'Boolean': case 'Array': case 'Date': case 'RegExp': case 'Function': return type.toLowerCase(); } if (typeof obj === "object") { return "object"; } return undefined; }, push: function(result, actual, expected, message) { var details = { result: result, message: message, actual: actual, expected: expected }; message = escapeInnerText(message) || (result ? "okay" : "failed"); message = '<span class="test-message">' + message + "</span>"; expected = escapeInnerText(QUnit.jsDump.parse(expected)); actual = escapeInnerText(QUnit.jsDump.parse(actual)); var output = message + '<table><tr class="test-expected"><th>Expected: </th><td><pre>' + expected + '</pre></td></tr>'; if (actual != expected) { output += '<tr class="test-actual"><th>Result: </th><td><pre>' + actual + '</pre></td></tr>'; output += '<tr class="test-diff"><th>Diff: </th><td><pre>' + QUnit.diff(expected, actual) +'</pre></td></tr>'; } if (!result) { var source = sourceFromStacktrace(); if (source) { details.source = source; output += '<tr class="test-source"><th>Source: </th><td><pre>' + escapeInnerText(source) + '</pre></td></tr>'; } } output += "</table>"; runLoggingCallbacks( 'log', QUnit, details ); config.current.assertions.push({ result: !!result, message: output }); }, url: function( params ) { params = extend( extend( {}, QUnit.urlParams ), params ); var querystring = "?", key; for ( key in params ) { if ( !hasOwn.call( params, key ) ) { continue; } querystring += encodeURIComponent( key ) + "=" + encodeURIComponent( params[ key ] ) + "&"; } return window.location.pathname + querystring.slice( 0, -1 ); }, extend: extend, id: id, addEvent: addEvent }); //QUnit.constructor is set to the empty F() above so that we can add to it's prototype later //Doing this allows us to tell if the following methods have been overwritten on the actual //QUnit object, which is a deprecated way of using the callbacks. extend(QUnit.constructor.prototype, { // Logging callbacks; all receive a single argument with the listed properties // run test/logs.html for any related changes begin: registerLoggingCallback('begin'), // done: { failed, passed, total, runtime } done: registerLoggingCallback('done'), // log: { result, actual, expected, message } log: registerLoggingCallback('log'), // testStart: { name } testStart: registerLoggingCallback('testStart'), // testDone: { name, failed, passed, total } testDone: registerLoggingCallback('testDone'), // moduleStart: { name } moduleStart: registerLoggingCallback('moduleStart'), // moduleDone: { name, failed, passed, total } moduleDone: registerLoggingCallback('moduleDone') }); if ( typeof document === "undefined" || document.readyState === "complete" ) { config.autorun = true; } QUnit.load = function() { runLoggingCallbacks( 'begin', QUnit, {} ); // Initialize the config, saving the execution queue var oldconfig = extend({}, config); QUnit.init(); extend(config, oldconfig); config.blocking = false; var urlConfigHtml = '', len = config.urlConfig.length; for ( var i = 0, val; i < len, val = config.urlConfig[i]; i++ ) { config[val] = QUnit.urlParams[val]; urlConfigHtml += '<label><input name="' + val + '" type="checkbox"' + ( config[val] ? ' checked="checked"' : '' ) + '>' + val + '</label>'; } var userAgent = id("qunit-userAgent"); if ( userAgent ) { userAgent.innerHTML = navigator.userAgent; } var banner = id("qunit-header"); if ( banner ) { banner.innerHTML = '<a href="' + QUnit.url({ filter: undefined }) + '"> ' + banner.innerHTML + '</a> ' + urlConfigHtml; addEvent( banner, "change", function( event ) { var params = {}; params[ event.target.name ] = event.target.checked ? true : undefined; window.location = QUnit.url( params ); }); } var toolbar = id("qunit-testrunner-toolbar"); if ( toolbar ) { var filter = document.createElement("input"); filter.type = "checkbox"; filter.id = "qunit-filter-pass"; addEvent( filter, "click", function() { var ol = document.getElementById("qunit-tests"); if ( filter.checked ) { ol.className = ol.className + " hidepass"; } else { var tmp = " " + ol.className.replace( /[\n\t\r]/g, " " ) + " "; ol.className = tmp.replace(/ hidepass /, " "); } if ( defined.sessionStorage ) { if (filter.checked) { sessionStorage.setItem("qunit-filter-passed-tests", "true"); } else { sessionStorage.removeItem("qunit-filter-passed-tests"); } } }); if ( config.hidepassed || defined.sessionStorage && sessionStorage.getItem("qunit-filter-passed-tests") ) { filter.checked = true; var ol = document.getElementById("qunit-tests"); ol.className = ol.className + " hidepass"; } toolbar.appendChild( filter ); var label = document.createElement("label"); label.setAttribute("for", "qunit-filter-pass"); label.innerHTML = "Hide passed tests"; toolbar.appendChild( label ); } var main = id('qunit-fixture'); if ( main ) { config.fixture = main.innerHTML; } if (config.autostart) { QUnit.start(); } }; addEvent(window, "load", QUnit.load); // addEvent(window, "error") gives us a useless event object window.onerror = function( message, file, line ) { if ( QUnit.config.current ) { ok( false, message + ", " + file + ":" + line ); } else { test( "global failure", function() { ok( false, message + ", " + file + ":" + line ); }); } }; function done() { config.autorun = true; // Log the last module results if ( config.currentModule ) { runLoggingCallbacks( 'moduleDone', QUnit, { name: config.currentModule, failed: config.moduleStats.bad, passed: config.moduleStats.all - config.moduleStats.bad, total: config.moduleStats.all } ); } var banner = id("qunit-banner"), tests = id("qunit-tests"), runtime = +new Date - config.started, passed = config.stats.all - config.stats.bad, html = [ 'Tests completed in ', runtime, ' milliseconds.<br/>', '<span class="passed">', passed, '</span> tests of <span class="total">', config.stats.all, '</span> passed, <span class="failed">', config.stats.bad, '</span> failed.' ].join(''); if ( banner ) { banner.className = (config.stats.bad ? "qunit-fail" : "qunit-pass"); } if ( tests ) { id( "qunit-testresult" ).innerHTML = html; } if ( config.altertitle && typeof document !== "undefined" && document.title ) { // show ✖ for good, ✔ for bad suite result in title // use escape sequences in case file gets loaded with non-utf-8-charset document.title = [ (config.stats.bad ? "\u2716" : "\u2714"), document.title.replace(/^[\u2714\u2716] /i, "") ].join(" "); } runLoggingCallbacks( 'done', QUnit, { failed: config.stats.bad, passed: passed, total: config.stats.all, runtime: runtime } ); } function validTest( name ) { var filter = config.filter, run = false; if ( !filter ) { return true; } var not = filter.charAt( 0 ) === "!"; if ( not ) { filter = filter.slice( 1 ); } if ( name.indexOf( filter ) !== -1 ) { return !not; } if ( not ) { run = true; } return run; } // so far supports only Firefox, Chrome and Opera (buggy) // could be extended in the future to use something like https://github.com/csnover/TraceKit function sourceFromStacktrace() { try { throw new Error(); } catch ( e ) { if (e.stacktrace) { // Opera return e.stacktrace.split("\n")[6]; } else if (e.stack) { // Firefox, Chrome return e.stack.split("\n")[4]; } else if (e.sourceURL) { // Safari, PhantomJS // TODO sourceURL points at the 'throw new Error' line above, useless //return e.sourceURL + ":" + e.line; } } } function escapeInnerText(s) { if (!s) { return ""; } s = s + ""; return s.replace(/[\&<>]/g, function(s) { switch(s) { case "&": return "&amp;"; case "<": return "&lt;"; case ">": return "&gt;"; default: return s; } }); } function synchronize( callback, last ) { config.queue.push( callback ); if ( config.autorun && !config.blocking ) { process(last); } } function process( last ) { var start = new Date().getTime(); config.depth = config.depth ? config.depth + 1 : 1; while ( config.queue.length && !config.blocking ) { if ( !defined.setTimeout || config.updateRate <= 0 || ( ( new Date().getTime() - start ) < config.updateRate ) ) { config.queue.shift()(); } else { window.setTimeout( function(){ process( last ); }, 13 ); break; } } config.depth--; if ( last && !config.blocking && !config.queue.length && config.depth === 0 ) { done(); } } function saveGlobal() { config.pollution = []; if ( config.noglobals ) { for ( var key in window ) { if ( !hasOwn.call( window, key ) ) { continue; } config.pollution.push( key ); } } } function checkPollution( name ) { var old = config.pollution; saveGlobal(); var newGlobals = diff( config.pollution, old ); if ( newGlobals.length > 0 ) { ok( false, "Introduced global variable(s): " + newGlobals.join(", ") ); } var deletedGlobals = diff( old, config.pollution ); if ( deletedGlobals.length > 0 ) { ok( false, "Deleted global variable(s): " + deletedGlobals.join(", ") ); } } // returns a new Array with the elements that are in a but not in b function diff( a, b ) { var result = a.slice(); for ( var i = 0; i < result.length; i++ ) { for ( var j = 0; j < b.length; j++ ) { if ( result[i] === b[j] ) { result.splice(i, 1); i--; break; } } } return result; } function fail(message, exception, callback) { if ( typeof console !== "undefined" && console.error && console.warn ) { console.error(message); console.error(exception); console.error(exception.stack); console.warn(callback.toString()); } else if ( window.opera && opera.postError ) { opera.postError(message, exception, callback.toString); } } function extend(a, b) { for ( var prop in b ) { if ( b[prop] === undefined ) { delete a[prop]; // Avoid "Member not found" error in IE8 caused by setting window.constructor } else if ( prop !== "constructor" || a !== window ) { a[prop] = b[prop]; } } return a; } function addEvent(elem, type, fn) { if ( elem.addEventListener ) { elem.addEventListener( type, fn, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, fn ); } else { fn(); } } function id(name) { return !!(typeof document !== "undefined" && document && document.getElementById) && document.getElementById( name ); } function registerLoggingCallback(key){ return function(callback){ config[key].push( callback ); }; } // Supports deprecated method of completely overwriting logging callbacks function runLoggingCallbacks(key, scope, args) { //debugger; var callbacks; if ( QUnit.hasOwnProperty(key) ) { QUnit[key].call(scope, args); } else { callbacks = config[key]; for( var i = 0; i < callbacks.length; i++ ) { callbacks[i].call( scope, args ); } } } // Test for equality any JavaScript type. // Author: Philippe Rathé <prathe@gmail.com> QUnit.equiv = function () { var innerEquiv; // the real equiv function var callers = []; // stack to decide between skip/abort functions var parents = []; // stack to avoiding loops from circular referencing // Call the o related callback with the given arguments. function bindCallbacks(o, callbacks, args) { var prop = QUnit.objectType(o); if (prop) { if (QUnit.objectType(callbacks[prop]) === "function") { return callbacks[prop].apply(callbacks, args); } else { return callbacks[prop]; // or undefined } } } var getProto = Object.getPrototypeOf || function (obj) { return obj.__proto__; }; var callbacks = function () { // for string, boolean, number and null function useStrictEquality(b, a) { if (b instanceof a.constructor || a instanceof b.constructor) { // to catch short annotaion VS 'new' annotation of a // declaration // e.g. var i = 1; // var j = new Number(1); return a == b; } else { return a === b; } } return { "string" : useStrictEquality, "boolean" : useStrictEquality, "number" : useStrictEquality, "null" : useStrictEquality, "undefined" : useStrictEquality, "nan" : function(b) { return isNaN(b); }, "date" : function(b, a) { return QUnit.objectType(b) === "date" && a.valueOf() === b.valueOf(); }, "regexp" : function(b, a) { return QUnit.objectType(b) === "regexp" && a.source === b.source && // the regex itself a.global === b.global && // and its modifers // (gmi) ... a.ignoreCase === b.ignoreCase && a.multiline === b.multiline; }, // - skip when the property is a method of an instance (OOP) // - abort otherwise, // initial === would have catch identical references anyway "function" : function() { var caller = callers[callers.length - 1]; return caller !== Object && typeof caller !== "undefined"; }, "array" : function(b, a) { var i, j, loop; var len; // b could be an object literal here if (!(QUnit.objectType(b) === "array")) { return false; } len = a.length; if (len !== b.length) { // safe and faster return false; } // track reference to avoid circular references parents.push(a); for (i = 0; i < len; i++) { loop = false; for (j = 0; j < parents.length; j++) { if (parents[j] === a[i]) { loop = true;// dont rewalk array } } if (!loop && !innerEquiv(a[i], b[i])) { parents.pop(); return false; } } parents.pop(); return true; }, "object" : function(b, a) { var i, j, loop; var eq = true; // unless we can proove it var aProperties = [], bProperties = []; // collection of // strings // comparing constructors is more strict than using // instanceof if (a.constructor !== b.constructor) { // Allow objects with no prototype to be equivalent to // objects with Object as their constructor. if (!((getProto(a) === null && getProto(b) === Object.prototype) || (getProto(b) === null && getProto(a) === Object.prototype))) { return false; } } // stack constructor before traversing properties callers.push(a.constructor); // track reference to avoid circular references parents.push(a); for (i in a) { // be strict: don't ensures hasOwnProperty // and go deep loop = false; for (j = 0; j < parents.length; j++) { if (parents[j] === a[i]) loop = true; // don't go down the same path // twice } aProperties.push(i); // collect a's properties if (!loop && !innerEquiv(a[i], b[i])) { eq = false; break; } } callers.pop(); // unstack, we are done parents.pop(); for (i in b) { bProperties.push(i); // collect b's properties } // Ensures identical properties name return eq && innerEquiv(aProperties.sort(), bProperties .sort()); } }; }(); innerEquiv = function() { // can take multiple arguments var args = Array.prototype.slice.apply(arguments); if (args.length < 2) { return true; // end transition } return (function(a, b) { if (a === b) { return true; // catch the most you can } else if (a === null || b === null || typeof a === "undefined" || typeof b === "undefined" || QUnit.objectType(a) !== QUnit.objectType(b)) { return false; // don't lose time with error prone cases } else { return bindCallbacks(a, callbacks, [ b, a ]); } // apply transition with (1..n) arguments })(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length - 1)); }; return innerEquiv; }(); /** * jsDump Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | * http://flesler.blogspot.com Licensed under BSD * (http://www.opensource.org/licenses/bsd-license.php) Date: 5/15/2008 * * @projectDescription Advanced and extensible data dumping for Javascript. * @version 1.0.0 * @author Ariel Flesler * @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html} */ QUnit.jsDump = (function() { function quote( str ) { return '"' + str.toString().replace(/"/g, '\\"') + '"'; }; function literal( o ) { return o + ''; }; function join( pre, arr, post ) { var s = jsDump.separator(), base = jsDump.indent(), inner = jsDump.indent(1); if ( arr.join ) arr = arr.join( ',' + s + inner ); if ( !arr ) return pre + post; return [ pre, inner + arr, base + post ].join(s); }; function array( arr, stack ) { var i = arr.length, ret = Array(i); this.up(); while ( i-- ) ret[i] = this.parse( arr[i] , undefined , stack); this.down(); return join( '[', ret, ']' ); }; var reName = /^function (\w+)/; var jsDump = { parse:function( obj, type, stack ) { //type is used mostly internally, you can fix a (custom)type in advance stack = stack || [ ]; var parser = this.parsers[ type || this.typeOf(obj) ]; type = typeof parser; var inStack = inArray(obj, stack); if (inStack != -1) { return 'recursion('+(inStack - stack.length)+')'; } //else if (type == 'function') { stack.push(obj); var res = parser.call( this, obj, stack ); stack.pop(); return res; } // else return (type == 'string') ? parser : this.parsers.error; }, typeOf:function( obj ) { var type; if ( obj === null ) { type = "null"; } else if (typeof obj === "undefined") { type = "undefined"; } else if (QUnit.is("RegExp", obj)) { type = "regexp"; } else if (QUnit.is("Date", obj)) { type = "date"; } else if (QUnit.is("Function", obj)) { type = "function"; } else if (typeof obj.setInterval !== undefined && typeof obj.document !== "undefined" && typeof obj.nodeType === "undefined") { type = "window"; } else if (obj.nodeType === 9) { type = "document"; } else if (obj.nodeType) { type = "node"; } else if ( // native arrays toString.call( obj ) === "[object Array]" || // NodeList objects ( typeof obj.length === "number" && typeof obj.item !== "undefined" && ( obj.length ? obj.item(0) === obj[0] : ( obj.item( 0 ) === null && typeof obj[0] === "undefined" ) ) ) ) { type = "array"; } else { type = typeof obj; } return type; }, separator:function() { return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? '&nbsp;' : ' '; }, indent:function( extra ) {// extra can be a number, shortcut for increasing-calling-decreasing if ( !this.multiline ) return ''; var chr = this.indentChar; if ( this.HTML ) chr = chr.replace(/\t/g,' ').replace(/ /g,'&nbsp;'); return Array( this._depth_ + (extra||0) ).join(chr); }, up:function( a ) { this._depth_ += a || 1; }, down:function( a ) { this._depth_ -= a || 1; }, setParser:function( name, parser ) { this.parsers[name] = parser; }, // The next 3 are exposed so you can use them quote:quote, literal:literal, join:join, // _depth_: 1, // This is the list of parsers, to modify them, use jsDump.setParser parsers:{ window: '[Window]', document: '[Document]', error:'[ERROR]', //when no parser is found, shouldn't happen unknown: '[Unknown]', 'null':'null', 'undefined':'undefined', 'function':function( fn ) { var ret = 'function', name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE if ( name ) ret += ' ' + name; ret += '('; ret = [ ret, QUnit.jsDump.parse( fn, 'functionArgs' ), '){'].join(''); return join( ret, QUnit.jsDump.parse(fn,'functionCode'), '}' ); }, array: array, nodelist: array, arguments: array, object:function( map, stack ) { var ret = [ ]; QUnit.jsDump.up(); for ( var key in map ) { var val = map[key]; ret.push( QUnit.jsDump.parse(key,'key') + ': ' + QUnit.jsDump.parse(val, undefined, stack)); } QUnit.jsDump.down(); return join( '{', ret, '}' ); }, node:function( node ) { var open = QUnit.jsDump.HTML ? '&lt;' : '<', close = QUnit.jsDump.HTML ? '&gt;' : '>'; var tag = node.nodeName.toLowerCase(), ret = open + tag; for ( var a in QUnit.jsDump.DOMAttrs ) { var val = node[QUnit.jsDump.DOMAttrs[a]]; if ( val ) ret += ' ' + a + '=' + QUnit.jsDump.parse( val, 'attribute' ); } return ret + close + open + '/' + tag + close; }, functionArgs:function( fn ) {//function calls it internally, it's the arguments part of the function var l = fn.length; if ( !l ) return ''; var args = Array(l); while ( l-- ) args[l] = String.fromCharCode(97+l);//97 is 'a' return ' ' + args.join(', ') + ' '; }, key:quote, //object calls it internally, the key part of an item in a map functionCode:'[code]', //function calls it internally, it's the content of the function attribute:quote, //node calls it internally, it's an html attribute value string:quote, date:quote, regexp:literal, //regex number:literal, 'boolean':literal }, DOMAttrs:{//attributes to dump from nodes, name=>realName id:'id', name:'name', 'class':'className' }, HTML:false,//if true, entities are escaped ( <, >, \t, space and \n ) indentChar:' ',//indentation unit multiline:true //if true, items in a collection, are separated by a \n, else just a space. }; return jsDump; })(); // from Sizzle.js function getText( elems ) { var ret = "", elem; for ( var i = 0; elems[i]; i++ ) { elem = elems[i]; // Get the text from text nodes and CDATA nodes if ( elem.nodeType === 3 || elem.nodeType === 4 ) { ret += elem.nodeValue; // Traverse everything else, except comment nodes } else if ( elem.nodeType !== 8 ) { ret += getText( elem.childNodes ); } } return ret; }; //from jquery.js function inArray( elem, array ) { if ( array.indexOf ) { return array.indexOf( elem ); } for ( var i = 0, length = array.length; i < length; i++ ) { if ( array[ i ] === elem ) { return i; } } return -1; } /* * Javascript Diff Algorithm * By John Resig (http://ejohn.org/) * Modified by Chu Alan "sprite" * * Released under the MIT license. * * More Info: * http://ejohn.org/projects/javascript-diff-algorithm/ * * Usage: QUnit.diff(expected, actual) * * QUnit.diff("the quick brown fox jumped over", "the quick fox jumps over") == "the quick <del>brown </del> fox <del>jumped </del><ins>jumps </ins> over" */ QUnit.diff = (function() { function diff(o, n) { var ns = {}; var os = {}; for (var i = 0; i < n.length; i++) { if (ns[n[i]] == null) ns[n[i]] = { rows: [], o: null }; ns[n[i]].rows.push(i); } for (var i = 0; i < o.length; i++) { if (os[o[i]] == null) os[o[i]] = { rows: [], n: null }; os[o[i]].rows.push(i); } for (var i in ns) { if ( !hasOwn.call( ns, i ) ) { continue; } if (ns[i].rows.length == 1 && typeof(os[i]) != "undefined" && os[i].rows.length == 1) { n[ns[i].rows[0]] = { text: n[ns[i].rows[0]], row: os[i].rows[0] }; o[os[i].rows[0]] = { text: o[os[i].rows[0]], row: ns[i].rows[0] }; } } for (var i = 0; i < n.length - 1; i++) { if (n[i].text != null && n[i + 1].text == null && n[i].row + 1 < o.length && o[n[i].row + 1].text == null && n[i + 1] == o[n[i].row + 1]) { n[i + 1] = { text: n[i + 1], row: n[i].row + 1 }; o[n[i].row + 1] = { text: o[n[i].row + 1], row: i + 1 }; } } for (var i = n.length - 1; i > 0; i--) { if (n[i].text != null && n[i - 1].text == null && n[i].row > 0 && o[n[i].row - 1].text == null && n[i - 1] == o[n[i].row - 1]) { n[i - 1] = { text: n[i - 1], row: n[i].row - 1 }; o[n[i].row - 1] = { text: o[n[i].row - 1], row: i - 1 }; } } return { o: o, n: n }; } return function(o, n) { o = o.replace(/\s+$/, ''); n = n.replace(/\s+$/, ''); var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/)); var str = ""; var oSpace = o.match(/\s+/g); if (oSpace == null) { oSpace = [" "]; } else { oSpace.push(" "); } var nSpace = n.match(/\s+/g); if (nSpace == null) { nSpace = [" "]; } else { nSpace.push(" "); } if (out.n.length == 0) { for (var i = 0; i < out.o.length; i++) { str += '<del>' + out.o[i] + oSpace[i] + "</del>"; } } else { if (out.n[0].text == null) { for (n = 0; n < out.o.length && out.o[n].text == null; n++) { str += '<del>' + out.o[n] + oSpace[n] + "</del>"; } } for (var i = 0; i < out.n.length; i++) { if (out.n[i].text == null) { str += '<ins>' + out.n[i] + nSpace[i] + "</ins>"; } else { var pre = ""; for (n = out.n[i].row + 1; n < out.o.length && out.o[n].text == null; n++) { pre += '<del>' + out.o[n] + oSpace[n] + "</del>"; } str += " " + out.n[i].text + nSpace[i] + pre; } } } return str; }; })(); })(this);
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/qunit/qunit.js
JavaScript
asf20
41,077
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Respond.js Test Suite</title> <link rel="stylesheet" href="qunit/qunit.css" media="screen"> <script src="qunit/qunit.js"></script> <link href="test.css" rel="stylesheet" /> <link href="test2.css" media="screen and (min-width: 1200px)" rel="stylesheet" /> <link href="test3.css" media="screen and (min-width: 87.5em)" rel="stylesheet" /> <script src="../../respond.src.js"></script> <script src="tests.js"></script> </head> <body> <h1 id="qunit-header">Respond.js Test Suite</h1> <h2 id="qunit-banner"></h2> <div id="qunit-testrunner-toolbar"></div> <h2 id="qunit-userAgent"></h2> <ol id="qunit-tests"></ol> <!-- tests must run in new window --> <div id="launcher"></div> <!-- elem for applying css via queries --> <div id="testelem" class="foo">test</div> </body> </html>
0x6a
trunk/libraries/bootstrap/Respond-master/test/unit/index.html
HTML
asf20
858
/* This is just a test file for making sure the script is working properly. If it is, the media queries below will change the body's background color depending on the browser width. For a realistic use case for media queries: read up on Responsive Web Design: http://www.alistapart.com/articles/responsive-web-design/ */ body { background: black; color: #333; font-family: Helvetica, sans-serif; } p { } a { color: #333; } /* hide the attribute-test element. test2.css will show it */ #attribute-test { display: none; } /*styles for 300 and up @ 16px!*/ /* The max-width declaration below blocks this from ever working */ @media only screen and (min-width: 18.75em){// body { background: yellow; } } /*styles for 480px - 620px @ 16px!*/ @media only screen and (min-width: 30em) and (max-width: 38.75em) { body { background: green; } } /*styles for 480px - 620px @ 16px!*/ @media all and (max-width: 640px) { .logo{ width:100%;margin:0 auto;display:block;max-width:386px;height:auto;max-height:391px;} .ios{height:63px;width:192px;background:url('Test/apple-button.png') center;position:relative;left:50%;margin-left:-100px;margin-top:20px} .android{height:63px;width:192px;background:url('Test/android-button.png') center;position:relative;left:50%;margin-left:-100px;margin-top:20px} .popup{position:absolute;top:-142px;left:180px;display:none} .android:hover .popup,.ios:hover .popup{ display:block; } .menu{height:40px;background:red;line-height:40px;} .menu .drop{width:100%;background:#fff;height:140px;display:none} .menu:hover .drop{display:block} } @media all and (min-width: 640px) { .logo{ width:100%;margin:0 auto;display:block;max-width:386px;height:auto;max-height:391px;} .ios{height:63px;width:192px;background:url('Test/apple-button.png') center;position:absolute;left:50%;margin-left:-200px;margin-top:20px} .android{height:63px;width:192px;background:url('Test/android-button.png') center;position:absolute;left:50%;margin-left:20px;margin-top:20px} .popup{position:absolute;top:-142px;left:180px;display:none} .android:hover .popup,.ios:hover .popup{display:block;} .menu{height:80px;background:red;position:fixed;width:100%;bottom:0;left:0} .menu .drop{display:none} } @media screen and (min-width: 38.75em),only print,projector{body{background:red;}} /*styles for 800px and up @ 16px!*/ @media screen and (min-width: 50em){ body { background: blue; } } /*styles for 1100px and up @ 16px!*/ @media screen and (min-width: 68.75em){ body { background: orange; } } /*one with pixels too! */ /* NOTE - if the user were to increase his browser font size to 20px (chrome: Large), the above (68.75em) media query will be incorrectly ignored!!! Assuming 20px browser setting, we would expect to see this progression: yellow > green > red > blue > NAVY > orange However, the orange never kicks in... which seems like a browser bug! Here's the math (assuming 20px browser setting): 1200/20 = 60em < 68.75em */ @media screen and (min-width: 1200px){ body { background: navy; } }
0x6a
trunk/libraries/bootstrap/Respond-master/test/res.css
CSS
asf20
3,077
/* This is just a test file for making sure the script is working properly. If it is, the media queries below will change the body's background color depending on the browser width. For a realistic use case for media queries: read up on Responsive Web Design: http://www.alistapart.com/articles/responsive-web-design/ */ body { background: black; color: #333; font-family: Helvetica, sans-serif; } p { width: 60%; min-width: 18.75em; /* 300px @ 16px */ max-width: 43.75em; /* 700px @ 16px */ margin: 2em auto; background: #fff; padding: 20px; } a { color: #333; } /* hide the attribute-test element. test2.css will show it */ #attribute-test { display: none; } /*styles for 300 and up @ 16px!*/ /* The max-width declaration below blocks this from ever working */ @media only screen and (min-width: 18.75em){ body { background: yellow; } } /*styles for 480px - 620px @ 16px!*/ @media only screen and (min-width: 30em) and (max-width: 38.75em) { body { background: green; } } @media screen and (min-width: 38.75em),only print,projector{body{background:red;}} /*styles for 800px and up @ 16px!*/ @media screen and (min-width: 50em){ body { background: blue; } } /*styles for 1100px and up @ 16px!*/ @media screen and (min-width: 68.75em){ body { background: orange; } } /*one with pixels too! */ /* NOTE - if the user were to increase his browser font size to 20px (chrome: Large), the above (68.75em) media query will be incorrectly ignored!!! Assuming 20px browser setting, we would expect to see this progression: yellow > green > red > blue > NAVY > orange However, the orange never kicks in... which seems like a browser bug! Here's the math (assuming 20px browser setting): 1200/20 = 60em < 68.75em */ @media screen and (min-width: 1200px){ body { background: navy; } }
0x6a
trunk/libraries/bootstrap/Respond-master/test/test.css
CSS
asf20
1,851
/* this stylesheet was referenced via a link that had a media attr defined it should only apply on screen > 600px */ #attribute-test { display: block; color: #fff; background: black; text-align: center; }
0x6a
trunk/libraries/bootstrap/Respond-master/test/test2.css
CSS
asf20
208
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width"> <title>Respond JS Test Page</title> <link href="test.css" rel="stylesheet"/> <link href="res.css" rel="stylesheet"/> <!-- 37.5em = 600px @ 16px --> <script type="text/javascript" src="../respond.src.js"></script> </head> <body> <div class="menu">Menu <div class="drop"> item 1<br/> item 1<br/> item 1<br/> </div> </div> <img src="Test/logo.png" class="logo"/> <div class="ios"><img src="Test/pop-up.png" class="popup"/></div> <div class="android"><img src="Test/pop-up.png" class="popup"/></div> </body> </html>
0x6a
trunk/libraries/bootstrap/Respond-master/test/res.html
HTML
asf20
645
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Respond JS Test Page</title> <link href="test.css" rel="stylesheet"/> <link href="test2.css" media="screen and (min-width: 37.5em)" rel="stylesheet"/> <!-- 37.5em = 600px @ 16px --> <script src="../respond.src.js"></script> </head> <body> <p>This is just a visual test file, and an ugly one at that! For unit tests, visit the <a href="unit/"> Respond.js unit test suite</a></p> <p>The media queries in the included CSS file simply change the body's background color depending on the browser width. If you see any colors aside from black, then the media queries are working in your browser. You can resize your browser window to see it change on the fly.</p> <p>For a realistic use case for media queries: read up on <a href="http://www.alistapart.com/articles/responsive-web-design/">Responsive Web Design</a></p> <p id="attribute-test">Media-attributes are working too! This should be visible above 37.5em.</p> </body> </html>
0x6a
trunk/libraries/bootstrap/Respond-master/test/test.html
HTML
asf20
1,001
/*! Respond.js: min/max-width media query polyfill. Remote proxy (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ (function(win, doc, undefined){ var docElem = doc.documentElement, proxyURL = doc.getElementById("respond-proxy").href, redirectURL = (doc.getElementById("respond-redirect") || location).href, baseElem = doc.getElementsByTagName("base")[0], urls = [], refNode; function encode(url){ return win.encodeURIComponent(url); } function fakejax( url, callback ){ var iframe, AXO; // All hail Google http://j.mp/iKMI19 // Behold, an iframe proxy without annoying clicky noises. if ( "ActiveXObject" in win ) { AXO = new ActiveXObject( "htmlfile" ); AXO.open(); AXO.write( '<iframe id="x"></iframe>' ); AXO.close(); iframe = AXO.getElementById( "x" ); } else { iframe = doc.createElement( "iframe" ); iframe.style.cssText = "position:absolute;top:-99em"; docElem.insertBefore(iframe, docElem.firstElementChild || docElem.firstChild ); } iframe.src = checkBaseURL(proxyURL) + "?url=" + encode(redirectURL) + "&css=" + encode(checkBaseURL(url)); function checkFrameName() { var cssText; try { cssText = iframe.contentWindow.name; } catch (e) { } if (cssText) { // We've got what we need. Stop the iframe from loading further content. iframe.src = "about:blank"; iframe.parentNode.removeChild(iframe); iframe = null; // Per http://j.mp/kn9EPh, not taking any chances. Flushing the ActiveXObject if (AXO) { AXO = null; if (win.CollectGarbage) { win.CollectGarbage(); } } callback(cssText); } else{ win.setTimeout(checkFrameName, 100); } } win.setTimeout(checkFrameName, 500); } function checkBaseURL(href) { if (baseElem && href.indexOf(baseElem.href) === -1) { bref = (/\/$/).test(baseElem.href) ? baseElem.href : (baseElem.href + "/"); href = bref + href; } return href; } function checkRedirectURL() { // IE6 & IE7 don't build out absolute urls in <link /> attributes. // So respond.proxy.gif remains relative instead of http://example.com/respond.proxy.gif. // This trickery resolves that issue. if (~ !redirectURL.indexOf(location.host)) { var fakeLink = doc.createElement("div"); fakeLink.innerHTML = '<a href="' + redirectURL + '"></a>'; docElem.insertBefore(fakeLink, docElem.firstElementChild || docElem.firstChild ); // Grab the parsed URL from that dummy object redirectURL = fakeLink.firstChild.href; // Clean up fakeLink.parentNode.removeChild(fakeLink); fakeLink = null; } } function buildUrls(){ var links = doc.getElementsByTagName( "link" ); for( var i = 0, linkl = links.length; i < linkl; i++ ){ var thislink = links[i], href = links[i].href, extreg = (/^([a-zA-Z]+?:(\/\/)?(www\.)?)/).test( href ), ext = (baseElem && !extreg) || extreg; //make sure it's an external stylesheet if( thislink.rel.indexOf( "stylesheet" ) >= 0 && ext ){ (function( link ){ fakejax( href, function( css ){ link.styleSheet.rawCssText = css; respond.update(); } ); })( thislink ); } } } if( !respond.mediaQueriesSupported ){ checkRedirectURL(); buildUrls(); } })( window, document );
0x6a
trunk/libraries/bootstrap/Respond-master/cross-domain/respond.proxy.js
JavaScript
asf20
3,312
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Respond JS Test Page</title> <link href="http://scottjehl.com/respond-proxy/test.css" rel="stylesheet"/> <link href="http://scottjehl.com/respond-proxy/test2.css" media="screen and (min-width: 600px)" rel="stylesheet"/> <script src="../respond.src.js"></script> <!-- Respond.js proxy on external server --> <link href="http://scottjehl.com/respond-proxy/respond-proxy.html" id="respond-proxy" rel="respond-proxy" /> <link href="respond.proxy.gif" id="respond-redirect" rel="respond-redirect" /> <script src="respond.proxy.js"></script> </head> <body> <p>This is a visual test file for cross-domain proxy.</p> <p>The media queries in the included CSS file simply change the body's background color depending on the browser width. If you see any colors aside from black, then the media queries are working in your browser. You can resize your browser window to see it change on the fly.</p> <p id="attribute-test">Media-attributes are working too! This should be visible above 600px.</p> </body> </html>
0x6a
trunk/libraries/bootstrap/Respond-master/cross-domain/example.html
HTML
asf20
1,082
<!-- Respond.js: min/max-width media query polyfill. Remote proxy (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs --> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Respond JS Proxy</title> </head> <body> <script> (function () { var domain, css, query, getQueryString, ajax, xmlHttp; /* http://stackoverflow.com/questions/4963673/get-url-array-variables-in-javascript-jquery/4963817#4963817 */ getQueryString = function() { var ret = {}, parts, i, p; parts = (document.location.toString().split("?")[1]).split("&"); for (i = 0; i < parts.length; i++) { p = parts[i].split("="); // so strings will be correctly parsed: p[1] = decodeURIComponent(p[1].replace(/\+/g, " ")); if (p[0].search(/\[\]/) >= 0) { // then it"s an array p[0] = p[0].replace("[]", ""); if (typeof ret[p[0]] != "object") { ret[p[0]] = []; } ret[p[0]].push(p[1]); } else { ret[p[0]] = p[1]; } } return ret; }; ajax = function( url, callback ) { var req = xmlHttp(); if (!req){ return; } req.open( "GET", url, true ); req.onreadystatechange = function () { if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){ return; } callback( req.responseText ); }; if ( req.readyState == 4 ){ return; } req.send(); }; //define ajax obj xmlHttp = (function() { var xmlhttpmethod = false, attempts = [ function(){ return new XMLHttpRequest(); }, function(){ return new ActiveXObject("Microsoft.XMLHTTP"); }, function(){ return new ActiveXObject("MSXML2.XMLHTTP.3.0"); } ], al = attempts.length; while( al-- ){ try { xmlhttpmethod = attempts[ al ](); } catch(e) { continue; } break; } return function(){ return xmlhttpmethod; }; })(); query = getQueryString(); css = query["css"]; domain = query["url"]; if (css && domain) { ajax(css, function (response) { window.name = response; window.location.href = domain; }); } }()); </script> </body> </html>
0x6a
trunk/libraries/bootstrap/Respond-master/cross-domain/respond-proxy.html
HTML
asf20
2,168
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ window.matchMedia = window.matchMedia || (function( doc, undefined ) { "use strict"; var bool, docElem = doc.documentElement, refNode = docElem.firstElementChild || docElem.firstChild, // fakeBody required for <FF4 when executed in <head> fakeBody = doc.createElement( "body" ), div = doc.createElement( "div" ); div.id = "mq-test-1"; div.style.cssText = "position:absolute;top:-100em"; fakeBody.style.background = "none"; fakeBody.appendChild(div); return function(q){ div.innerHTML = "&shy;<style media=\"" + q + "\"> #mq-test-1 { width: 42px; }</style>"; docElem.insertBefore( fakeBody, refNode ); bool = div.offsetWidth === 42; docElem.removeChild( fakeBody ); return { matches: bool, media: q }; }; }( document )); /*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ (function( win ){ "use strict"; //exposed namespace var respond = {}; win.respond = respond; //define update even in native-mq-supporting browsers, to avoid errors respond.update = function(){}; //expose media query support flag for external use respond.mediaQueriesSupported = win.matchMedia && win.matchMedia( "only all" ).matches; //if media queries are supported, exit here if( respond.mediaQueriesSupported ){ return; } //define vars var doc = win.document, docElem = doc.documentElement, mediastyles = [], rules = [], appendedEls = [], parsedSheets = {}, resizeThrottle = 30, head = doc.getElementsByTagName( "head" )[0] || docElem, base = doc.getElementsByTagName( "base" )[0], links = head.getElementsByTagName( "link" ), requestQueue = [], //loop stylesheets, send text content to translate ripCSS = function(){ for( var i = 0; i < links.length; i++ ){ var sheet = links[ i ], href = sheet.href, media = sheet.media, isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; //only links plz and prevent re-parsing if( !!href && isCSS && !parsedSheets[ href ] ){ // selectivizr exposes css through the rawCssText expando if (sheet.styleSheet && sheet.styleSheet.rawCssText) { translate( sheet.styleSheet.rawCssText, href, media ); parsedSheets[ href ] = true; } else { if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) || href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){ requestQueue.push( { href: href, media: media } ); } } } } makeRequests(); }, //recurse through request queue, get css text makeRequests = function(){ if( requestQueue.length ){ var thisRequest = requestQueue.shift(); ajax( thisRequest.href, function( styles ){ translate( styles, thisRequest.href, thisRequest.media ); parsedSheets[ thisRequest.href ] = true; // by wrapping recursive function call in setTimeout // we prevent "Stack overflow" error in IE7 win.setTimeout(function(){ makeRequests(); },0); } ); } }, //find media blocks in css text, convert to style blocks translate = function( styles, href, media ){ var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ), ql = qs && qs.length || 0; //try to get CSS path href = href.substring( 0, href.lastIndexOf( "/" ) ); var repUrls = function( css ){ return css.replace( /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3" ); }, useMedia = !ql && media; //if path exists, tack on trailing slash if( href.length ){ href += "/"; } //if no internal queries exist, but media attr does, use that //note: this currently lacks support for situations where a media attr is specified on a link AND //its associated stylesheet has internal CSS media queries. //In those cases, the media attribute will currently be ignored. if( useMedia ){ ql = 1; } for( var i = 0; i < ql; i++ ){ var fullq, thisq, eachq, eql; //media attr if( useMedia ){ fullq = media; rules.push( repUrls( styles ) ); } //parse for styles else{ fullq = qs[ i ].match( /@media *([^\{]+)\{([\S\s]+?)$/ ) && RegExp.$1; rules.push( RegExp.$2 && repUrls( RegExp.$2 ) ); } eachq = fullq.split( "," ); eql = eachq.length; for( var j = 0; j < eql; j++ ){ thisq = eachq[ j ]; mediastyles.push( { media : thisq.split( "(" )[ 0 ].match( /(only\s+)?([a-zA-Z]+)\s?/ ) && RegExp.$2 || "all", rules : rules.length - 1, hasquery : thisq.indexOf("(") > -1, minw : thisq.match( /\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ), maxw : thisq.match( /\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ) } ); } } applyMedia(); }, lastCall, resizeDefer, // returns the value of 1em in pixels getEmValue = function() { var ret, div = doc.createElement('div'), body = doc.body, fakeUsed = false; div.style.cssText = "position:absolute;font-size:1em;width:1em"; if( !body ){ body = fakeUsed = doc.createElement( "body" ); body.style.background = "none"; } body.appendChild( div ); docElem.insertBefore( body, docElem.firstChild ); ret = div.offsetWidth; if( fakeUsed ){ docElem.removeChild( body ); } else { body.removeChild( div ); } //also update eminpx before returning ret = eminpx = parseFloat(ret); return ret; }, //cached container for 1em value, populated the first time it's needed eminpx, //enable/disable styles applyMedia = function( fromResize ){ var name = "clientWidth", docElemProp = docElem[ name ], currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp, styleBlocks = {}, lastLink = links[ links.length-1 ], now = (new Date()).getTime(); //throttle resize calls if( fromResize && lastCall && now - lastCall < resizeThrottle ){ win.clearTimeout( resizeDefer ); resizeDefer = win.setTimeout( applyMedia, resizeThrottle ); return; } else { lastCall = now; } for( var i in mediastyles ){ if( mediastyles.hasOwnProperty( i ) ){ var thisstyle = mediastyles[ i ], min = thisstyle.minw, max = thisstyle.maxw, minnull = min === null, maxnull = max === null, em = "em"; if( !!min ){ min = parseFloat( min ) * ( min.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 ); } if( !!max ){ max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 ); } // if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){ if( !styleBlocks[ thisstyle.media ] ){ styleBlocks[ thisstyle.media ] = []; } styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] ); } } } //remove any existing respond style element(s) for( var j in appendedEls ){ if( appendedEls.hasOwnProperty( j ) ){ if( appendedEls[ j ] && appendedEls[ j ].parentNode === head ){ head.removeChild( appendedEls[ j ] ); } } } //inject active styles, grouped by media type for( var k in styleBlocks ){ if( styleBlocks.hasOwnProperty( k ) ){ var ss = doc.createElement( "style" ), css = styleBlocks[ k ].join( "\n" ); ss.type = "text/css"; ss.media = k; //originally, ss was appended to a documentFragment and sheets were appended in bulk. //this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one! head.insertBefore( ss, lastLink.nextSibling ); if ( ss.styleSheet ){ ss.styleSheet.cssText = css; } else { ss.appendChild( doc.createTextNode( css ) ); } //push to appendedEls to track for later removal appendedEls.push( ss ); } } }, //tweaked Ajax functions from Quirksmode ajax = function( url, callback ) { var req = xmlHttp(); if (!req){ return; } req.open( "GET", url, true ); req.onreadystatechange = function () { if ( req.readyState !== 4 || req.status !== 200 && req.status !== 304 ){ return; } callback( req.responseText ); }; if ( req.readyState === 4 ){ return; } req.send( null ); }, //define ajax obj xmlHttp = (function() { var xmlhttpmethod = false; try { xmlhttpmethod = new win.XMLHttpRequest(); } catch( e ){ xmlhttpmethod = new win.ActiveXObject( "Microsoft.XMLHTTP" ); } return function(){ return xmlhttpmethod; }; })(); //translate CSS ripCSS(); //expose update for re-running respond later on respond.update = ripCSS; //adjust on resize function callMedia(){ applyMedia( true ); } if( win.addEventListener ){ win.addEventListener( "resize", callMedia, false ); } else if( win.attachEvent ){ win.attachEvent( "onresize", callMedia ); } })(this);
0x6a
trunk/libraries/bootstrap/Respond-master/respond.src.js
JavaScript
asf20
9,748
<!DOCTYPE html> <html> <head> <title>Bootstrap 101 Template</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Bootstrap --> <link href="../css/grid.css" rel="stylesheet" media="screen"> <style> .show-grid [class^="col-"] { padding-top: 10px; padding-bottom: 10px; background-color: #eee; border: 1px solid #ddd; background-color: rgba(86,61,124,.15); border: 1px solid rgba(86,61,124,.2); } </style> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="js/respond.min.js"></script> <![endif]--> </head> <body> <div class="navbar"> <div class="container"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Title</a> <div class="nav-collapse collapse navbar-responsive-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li class="dropdown-header">Dropdown header</li> <li><a href="#">Separated link</a></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <ul class="nav navbar-nav pull-right"> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> </ul> </li> </ul> </div><!-- /.nav-collapse --> </div><!-- /.container --> </div><!-- /.navbar --> <div class="container"> <h2>Bootstrap grids</h2> <p class="lead">Basic grid layouts to get you familiar with building within the Bootstrap grid system.</p> <div class="row-fluid"> <div class="col-lg-4 col-sm-6 col-12"> <div class="thumbnail"> <img class="col-12 img-thumbnail img-responsive" src="http://localhost/0x6A/0x4D/0x1A/0x2A/55.jpg" alt=""> <div class="caption"> <div class="hidden-sm"> <h3>Thumbnail label</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </div> <div class="col-lg-4 col-sm-6 col-12"> <div class="thumbnail"> <img class="col-12 img-thumbnail img-responsive" src="http://localhost/0x6A/0x4D/0x1A/0x2A/55.jpg" alt=""> <div class="caption"> <div class="hidden-sm"> <h3>Thumbnail label</h3> <p> <input type="text" /> </p> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> </div> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </div> <div class="col-lg-4 col-sm-6 col-12" > <div class="thumbnail" > <img class="col-12 panel -img-thumbnail img-responsive" style="border: none" accesskey=""src="http://localhost/0x6A/0x4D/0x1A/0x2A/55.jpg" alt=""> <div class="caption"> <h3>Thumbnail label</h3> <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> </div> </div> </div> </div> <div class="clearfix"></div> <h4>Three equal columns</h4> <div class="row show-grid"> <div class="col-lg-4">.col-lg-4</div> <div class="col-lg-4">.col-lg-4</div> <div class="col-lg-4">.col-lg-4</div> </div> <h4>Three unequal columns</h4> <div class="row show-grid"> <div class="col-lg-3">.col-lg-3</div> <div class="col-lg-6">.col-lg-6</div> <div class="col-lg-3">.col-lg-3</div> </div> <h4>Two columns</h4> <div class="row show-grid"> <div class="col-lg-8">.col-lg-8</div> <div class="col-lg-4">.col-lg-4</div> </div> <h4>Full width, single column</h4> <p class="text-warning">No grid classes are necessary for full-width elements.</p> <h4>Two columns with two nested columns</h4> <div class="row show-grid"> <div class="col-lg-8"> .col-lg-8 <div class="row show-grid"> <div class="col-lg-6">.col-lg-6</div> <div class="col-lg-6">.col-lg-6</div> </div> </div> <div class="col-lg-4">.col-lg-4</div> </div> <h4>Mixed: mobile and desktop</h4> <div class="row show-grid"> <div class="col-12 col-lg-8">.col-12 .col-lg-8</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-lg-6">.col-6 .col-lg-6</div> <div class="col-6 col-lg-6">.col-6 .col-lg-6</div> </div> <h4>Mixed: mobile, tablet, and desktop</h4> <div class="row show-grid"> <div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div> </div> <div class="row show-grid"> <div class="col-6 col-sm-6 col-lg-6 ">.col-6 .col-lg-6</div> <div class="col-6 col-sm-6 col-lg-6 ">.col-6 .col-lg-6</div> </div> </div> <!-- /container --> <div class="container"> <h1>Bootstrap 3 Panels</h1> <div class="panel"> <!-- Default panel contents --> <div class="panel-heading">Panel heading</div> <p>Panel with List Group</p> <!-- List group --> <ul class="list-group list-group-flush"> <li class="list-group-item">Cras justo odio</li> <li class="list-group-item">Dapibus ac facilisis in</li> <li class="list-group-item">Morbi leo risus</li> <li class="list-group-item">Porta ac consectetur ac</li> <li class="list-group-item">Vestibulum at eros</li> </ul> </div> <div class="panel panel-primary"> <div class="panel-heading">Bootstrap 3 - Panel Primary</div> Panel content goes here.. </div> <div class="panel panel-success"> <div class="panel-heading">Heading</div> Panel Success </div> <div class="panel panel-warning"> <div class="panel-heading">Heading</div> Panel Warning </div> <div class="panel panel-danger"> <div class="panel-heading">Heading</div> Panel Danger </div> <div class="panel panel-info"> <div class="panel-heading">Heading</div> Panel Info </div> <hr> <a href="http://bootply.com/61518">Edit with Bootply</a> <hr> </div> <div class="container" style="max-width: -960px;padding: 0 -15px"> <div class="row-fluid show-grid"> <div class="col-lg-3 visible-lg"> <div class="bs-sidebar"> <ul class="nav bs-sidenav"> <li> <a href="#download">Download Bootstrap</a> <ul class="nav"> <li><a href="#download-options">Download options</a></li> <li><a href="#download-cdn">Bootstrap CDN</a></li> </ul> </li> <li> <a href="#whats-included">What's included</a> </li> <li> <a href="#template">Basic template</a> </li> <li> <a href="#browsers">Browser support</a> </li> <li> <a href="#license-faqs">License FAQs</a> </li> <li> <a href="#customizing">Customizing Bootstrap</a> </li> </ul> </div> </div> <div class="col-lg-9 panel"> abc </div> </div> </div> <h1>Hello, world!...</h1> <h2>Hello, world!...</h2> <h3>Hello, world!...</h3> <h4>Hello, world!...</h4> <h5>Hello, world!...</h5> <h6>.Hello, world!..</h6> <!-- JavaScript plugins (requires jQuery) --> <script src="http://code.jquery.com/jquery.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="js/bootstrap.min.js"></script> </body> </html>
0x6a
trunk/libraries/bootstrap/index.html
HTML
asf20
11,525
/* * jQuery Plugin: Tokenizing Autocomplete Text Entry * Version 1.6.0 * * Copyright (c) 2009 James Smith (http://loopj.com) * Licensed jointly under the GPL and MIT licenses, * choose which one suits your project best! * */ (function ($) { // Default settings var DEFAULT_SETTINGS = { // Search settings method: "POST", contentType: "json", queryParam: "q", searchDelay: 300, minChars: 1, propertyToSearch: "name", jsonContainer: null, // Display settings hintText: "Type in a search term", noResultsText: "No results", searchingText: "Searching...", deleteText: "&times;", animateDropdown: true, // Tokenization settings tokenLimit: null, tokenDelimiter: ",", preventDuplicates: false, // Output settings tokenValue: "id", // Prepopulation settings prePopulate: null, processPrePopulate: false, // Manipulation settings idPrefix: "token-input-", // Formatters resultsFormatter: function(item){ return "<li>" + item[this.propertyToSearch]+ "</li>" }, tokenFormatter: function(item) { return "<li><p>" + item[this.propertyToSearch] + "</p></li>" }, // Callbacks onResult: null, onAdd: null, onDelete: null, onReady: null }; // Default classes to use when theming var DEFAULT_CLASSES = { tokenList: "token-input-list", token: "token-input-token", tokenDelete: "token-input-delete-token", selectedToken: "token-input-selected-token", highlightedToken: "token-input-highlighted-token", dropdown: "token-input-dropdown", dropdownItem: "token-input-dropdown-item", dropdownItem2: "token-input-dropdown-item2", selectedDropdownItem: "token-input-selected-dropdown-item", inputToken: "token-input-input-token" }; // Input box position "enum" var POSITION = { BEFORE: 0, AFTER: 1, END: 2 }; // Keys "enum" var KEY = { BACKSPACE: 8, TAB: 9, ENTER: 13, ESCAPE: 27, SPACE: 32, PAGE_UP: 33, PAGE_DOWN: 34, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, NUMPAD_ENTER: 108, COMMA: 188 }; // Additional public (exposed) methods var methods = { init: function(url_or_data_or_function, options) { var settings = $.extend({}, DEFAULT_SETTINGS, options || {}); return this.each(function () { $(this).data("tokenInputObject", new $.TokenList(this, url_or_data_or_function, settings)); }); }, clear: function() { this.data("tokenInputObject").clear(); return this; }, add: function(item) { this.data("tokenInputObject").add(item); return this; }, remove: function(item) { this.data("tokenInputObject").remove(item); return this; }, get: function() { return this.data("tokenInputObject").getTokens(); } } // Expose the .tokenInput function to jQuery as a plugin $.fn.tokenInput = function (method) { // Method calling and initialization logic if(methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else { return methods.init.apply(this, arguments); } }; // TokenList class for each input $.TokenList = function (input, url_or_data, settings) { // // Initialization // // Configure the data source if($.type(url_or_data) === "string" || $.type(url_or_data) === "function") { // Set the url to query against settings.url = url_or_data; // If the URL is a function, evaluate it here to do our initalization work var url = computeURL(); // Make a smart guess about cross-domain if it wasn't explicitly specified if(settings.crossDomain === undefined) { if(url.indexOf("://") === -1) { settings.crossDomain = false; } else { settings.crossDomain = (location.href.split(/\/+/g)[1] !== url.split(/\/+/g)[1]); } } } else if(typeof(url_or_data) === "object") { // Set the local data to search through settings.local_data = url_or_data; } // Build class names if(settings.classes) { // Use custom class names settings.classes = $.extend({}, DEFAULT_CLASSES, settings.classes); } else if(settings.theme) { // Use theme-suffixed default class names settings.classes = {}; $.each(DEFAULT_CLASSES, function(key, value) { settings.classes[key] = value + "-" + settings.theme; }); } else { settings.classes = DEFAULT_CLASSES; } // Save the tokens var saved_tokens = []; // Keep track of the number of tokens in the list var token_count = 0; // Basic cache to save on db hits var cache = new $.TokenList.Cache(); // Keep track of the timeout, old vals var timeout; var input_val; // Create a new text input an attach keyup events var input_box = $("<input type=\"text\" autocomplete=\"off\">") .css({ outline: "none" }) .attr("id", settings.idPrefix + input.id) .focus(function () { if (settings.tokenLimit === null || settings.tokenLimit !== token_count) { show_dropdown_hint(); } }) .blur(function () { hide_dropdown(); $(this).val(""); }) .bind("keyup keydown blur update", resize_input) .keydown(function (event) { var previous_token; var next_token; switch(event.keyCode) { case KEY.LEFT: case KEY.RIGHT: case KEY.UP: case KEY.DOWN: if(!$(this).val()) { previous_token = input_token.prev(); next_token = input_token.next(); if((previous_token.length && previous_token.get(0) === selected_token) || (next_token.length && next_token.get(0) === selected_token)) { // Check if there is a previous/next token and it is selected if(event.keyCode === KEY.LEFT || event.keyCode === KEY.UP) { deselect_token($(selected_token), POSITION.BEFORE); } else { deselect_token($(selected_token), POSITION.AFTER); } } else if((event.keyCode === KEY.LEFT || event.keyCode === KEY.UP) && previous_token.length) { // We are moving left, select the previous token if it exists select_token($(previous_token.get(0))); } else if((event.keyCode === KEY.RIGHT || event.keyCode === KEY.DOWN) && next_token.length) { // We are moving right, select the next token if it exists select_token($(next_token.get(0))); } } else { var dropdown_item = null; if(event.keyCode === KEY.DOWN || event.keyCode === KEY.RIGHT) { dropdown_item = $(selected_dropdown_item).next(); } else { dropdown_item = $(selected_dropdown_item).prev(); } if(dropdown_item.length) { select_dropdown_item(dropdown_item); } return false; } break; case KEY.BACKSPACE: previous_token = input_token.prev(); if(!$(this).val().length) { if(selected_token) { delete_token($(selected_token)); hidden_input.change(); } else if(previous_token.length) { select_token($(previous_token.get(0))); } return false; } else if($(this).val().length === 1) { hide_dropdown(); } else { // set a timeout just long enough to let this function finish. setTimeout(function(){do_search();}, 5); } break; case KEY.TAB: case KEY.ENTER: case KEY.NUMPAD_ENTER: case KEY.COMMA: if(selected_dropdown_item) { add_token($(selected_dropdown_item).data("tokeninput")); hidden_input.change(); return false; } break; case KEY.ESCAPE: hide_dropdown(); return true; default: if(String.fromCharCode(event.which)) { // set a timeout just long enough to let this function finish. setTimeout(function(){do_search();}, 5); } break; } }); // Keep a reference to the original input box var hidden_input = $(input) .hide() .val("") .focus(function () { input_box.focus(); }) .blur(function () { input_box.blur(); }); // Keep a reference to the selected token and dropdown item var selected_token = null; var selected_token_index = 0; var selected_dropdown_item = null; // The list to store the token items in var token_list = $("<ul />") .addClass(settings.classes.tokenList) .click(function (event) { var li = $(event.target).closest("li"); if(li && li.get(0) && $.data(li.get(0), "tokeninput")) { toggle_select_token(li); } else { // Deselect selected token if(selected_token) { deselect_token($(selected_token), POSITION.END); } // Focus input box input_box.focus(); } }) .mouseover(function (event) { var li = $(event.target).closest("li"); if(li && selected_token !== this) { li.addClass(settings.classes.highlightedToken); } }) .mouseout(function (event) { var li = $(event.target).closest("li"); if(li && selected_token !== this) { li.removeClass(settings.classes.highlightedToken); } }) .insertBefore(hidden_input); // The token holding the input box var input_token = $("<li />") .addClass(settings.classes.inputToken) .appendTo(token_list) .append(input_box); // The list to store the dropdown items in var dropdown = $("<div>") .addClass(settings.classes.dropdown) .appendTo("body") .hide(); // Magic element to help us resize the text input var input_resizer = $("<tester/>") .insertAfter(input_box) .css({ position: "absolute", top: -9999, left: -9999, width: "auto", fontSize: input_box.css("fontSize"), fontFamily: input_box.css("fontFamily"), fontWeight: input_box.css("fontWeight"), letterSpacing: input_box.css("letterSpacing"), whiteSpace: "nowrap" }); // Pre-populate list if items exist hidden_input.val(""); var li_data = settings.prePopulate || hidden_input.data("pre"); if(settings.processPrePopulate && $.isFunction(settings.onResult)) { li_data = settings.onResult.call(hidden_input, li_data); } if(li_data && li_data.length) { $.each(li_data, function (index, value) { insert_token(value); checkTokenLimit(); }); } // Initialization is done if($.isFunction(settings.onReady)) { settings.onReady.call(); } // // Public functions // this.clear = function() { token_list.children("li").each(function() { if ($(this).children("input").length === 0) { delete_token($(this)); } }); } this.add = function(item) { add_token(item); } this.remove = function(item) { token_list.children("li").each(function() { if ($(this).children("input").length === 0) { var currToken = $(this).data("tokeninput"); var match = true; for (var prop in item) { if (item[prop] !== currToken[prop]) { match = false; break; } } if (match) { delete_token($(this)); } } }); } this.getTokens = function() { return saved_tokens; } // // Private functions // function checkTokenLimit() { if(settings.tokenLimit !== null && token_count >= settings.tokenLimit) { input_box.hide(); hide_dropdown(); return; } } function resize_input() { if(input_val === (input_val = input_box.val())) {return;} // Enter new content into resizer and resize input accordingly var escaped = input_val.replace(/&/g, '&amp;').replace(/\s/g,' ').replace(/</g, '&lt;').replace(/>/g, '&gt;'); input_resizer.html(escaped); input_box.width(input_resizer.width() + 30); } function is_printable_character(keycode) { return ((keycode >= 48 && keycode <= 90) || // 0-1a-z (keycode >= 96 && keycode <= 111) || // numpad 0-9 + - / * . (keycode >= 186 && keycode <= 192) || // ; = , - . / ^ (keycode >= 219 && keycode <= 222)); // ( \ ) ' } // Inner function to a token to the list function insert_token(item) { var this_token = settings.tokenFormatter(item); this_token = $(this_token) .addClass(settings.classes.token) .insertBefore(input_token); // The 'delete token' button $("<span>" + settings.deleteText + "</span>") .addClass(settings.classes.tokenDelete) .appendTo(this_token) .click(function () { delete_token($(this).parent()); hidden_input.change(); return false; }); // Store data on the token var token_data = {"id": item.id}; token_data[settings.propertyToSearch] = item[settings.propertyToSearch]; $.data(this_token.get(0), "tokeninput", item); // Save this token for duplicate checking saved_tokens = saved_tokens.slice(0,selected_token_index).concat([token_data]).concat(saved_tokens.slice(selected_token_index)); selected_token_index++; // Update the hidden input update_hidden_input(saved_tokens, hidden_input); token_count += 1; // Check the token limit if(settings.tokenLimit !== null && token_count >= settings.tokenLimit) { input_box.hide(); hide_dropdown(); } return this_token; } // Add a token to the token list based on user input function add_token (item) { var callback = settings.onAdd; // See if the token already exists and select it if we don't want duplicates if(token_count > 0 && settings.preventDuplicates) { var found_existing_token = null; token_list.children().each(function () { var existing_token = $(this); var existing_data = $.data(existing_token.get(0), "tokeninput"); if(existing_data && existing_data.id === item.id) { found_existing_token = existing_token; return false; } }); if(found_existing_token) { select_token(found_existing_token); input_token.insertAfter(found_existing_token); input_box.focus(); return; } } // Insert the new tokens if(settings.tokenLimit == null || token_count < settings.tokenLimit) { insert_token(item); checkTokenLimit(); } // Clear input box input_box.val(""); // Don't show the help dropdown, they've got the idea hide_dropdown(); // Execute the onAdd callback if defined if($.isFunction(callback)) { callback.call(hidden_input,item); } } // Select a token in the token list function select_token (token) { token.addClass(settings.classes.selectedToken); selected_token = token.get(0); // Hide input box input_box.val(""); // Hide dropdown if it is visible (eg if we clicked to select token) hide_dropdown(); } // Deselect a token in the token list function deselect_token (token, position) { token.removeClass(settings.classes.selectedToken); selected_token = null; if(position === POSITION.BEFORE) { input_token.insertBefore(token); selected_token_index--; } else if(position === POSITION.AFTER) { input_token.insertAfter(token); selected_token_index++; } else { input_token.appendTo(token_list); selected_token_index = token_count; } // Show the input box and give it focus again input_box.focus(); } // Toggle selection of a token in the token list function toggle_select_token(token) { var previous_selected_token = selected_token; if(selected_token) { deselect_token($(selected_token), POSITION.END); } if(previous_selected_token === token.get(0)) { deselect_token(token, POSITION.END); } else { select_token(token); } } // Delete a token from the token list function delete_token (token) { // Remove the id from the saved list var token_data = $.data(token.get(0), "tokeninput"); var callback = settings.onDelete; var index = token.prevAll().length; if(index > selected_token_index) index--; // Delete the token token.remove(); selected_token = null; // Show the input box and give it focus again input_box.focus(); // Remove this token from the saved list saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1)); if(index < selected_token_index) selected_token_index--; // Update the hidden input update_hidden_input(saved_tokens, hidden_input); token_count -= 1; if(settings.tokenLimit !== null) { input_box .show() .val("") .focus(); } // Execute the onDelete callback if defined if($.isFunction(callback)) { callback.call(hidden_input,token_data); } } // Update the hidden input box value function update_hidden_input(saved_tokens, hidden_input) { var token_values = $.map(saved_tokens, function (el) { return el[settings.tokenValue]; }); hidden_input.val(token_values.join(settings.tokenDelimiter)); } // Hide and clear the results dropdown function hide_dropdown () { dropdown.hide().empty(); selected_dropdown_item = null; } function show_dropdown() { dropdown .css({ position: "absolute", top: $(token_list).offset().top + $(token_list).outerHeight(), left: $(token_list).offset().left, zindex: 999 }) .show(); } function show_dropdown_searching () { if(settings.searchingText) { dropdown.html("<p>"+settings.searchingText+"</p>"); show_dropdown(); } } function show_dropdown_hint () { if(settings.hintText) { dropdown.html("<p>"+settings.hintText+"</p>"); show_dropdown(); } } // Highlight the query part of the search term function highlight_term(value, term) { return value;//.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<b>$1</b>"); } function find_value_and_highlight_term(template, value, term) { return template;//.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + value + ")(?![^<>]*>)(?![^&;]+;)", "g"), highlight_term(value, term)); } // Populate the results dropdown with some results function populate_dropdown (query, results) { if(results && results.length) { dropdown.empty(); var dropdown_ul = $("<ul>") .appendTo(dropdown) .mouseover(function (event) { select_dropdown_item($(event.target).closest("li")); }) .mousedown(function (event) { add_token($(event.target).closest("li").data("tokeninput")); hidden_input.change(); return false; }) .hide(); $.each(results, function(index, value) { var this_li = settings.resultsFormatter(value); this_li = find_value_and_highlight_term(this_li ,value[settings.propertyToSearch], query); this_li = $(this_li).appendTo(dropdown_ul); if(index % 2) { this_li.addClass(settings.classes.dropdownItem); } else { this_li.addClass(settings.classes.dropdownItem2); } if(index === 0) { select_dropdown_item(this_li); } $.data(this_li.get(0), "tokeninput", value); }); show_dropdown(); if(settings.animateDropdown) { dropdown_ul.slideDown("fast"); } else { dropdown_ul.show(); } } else { if(settings.noResultsText) { dropdown.html("<p>"+settings.noResultsText+"</p>"); show_dropdown(); } } } // Highlight an item in the results dropdown function select_dropdown_item (item) { if(item) { if(selected_dropdown_item) { deselect_dropdown_item($(selected_dropdown_item)); } item.addClass(settings.classes.selectedDropdownItem); selected_dropdown_item = item.get(0); } } // Remove highlighting from an item in the results dropdown function deselect_dropdown_item (item) { item.removeClass(settings.classes.selectedDropdownItem); selected_dropdown_item = null; } // Do a search and show the "searching" dropdown if the input is longer // than settings.minChars function do_search() { var query = input_box.val().toLowerCase(); if(query && query.length) { if(selected_token) { deselect_token($(selected_token), POSITION.AFTER); } if(query.length >= settings.minChars) { show_dropdown_searching(); clearTimeout(timeout); timeout = setTimeout(function(){ run_search(query); }, settings.searchDelay); } else { hide_dropdown(); } } } // Do the actual search function run_search(query) { var cache_key = query + computeURL(); var cached_results = cache.get(cache_key); if(cached_results) { populate_dropdown(query, cached_results); } else { // Are we doing an ajax search or local data search? if(settings.url) { var url = computeURL(); // Extract exisiting get params var ajax_params = {}; ajax_params.data = {}; if(url.indexOf("?") > -1) { var parts = url.split("?"); ajax_params.url = parts[0]; var param_array = parts[1].split("&"); $.each(param_array, function (index, value) { var kv = value.split("="); ajax_params.data[kv[0]] = kv[1]; }); } else { ajax_params.url = url; } // Prepare the request ajax_params.data[settings.queryParam] = query; ajax_params.type = settings.method; ajax_params.dataType = settings.contentType; if(settings.crossDomain) { ajax_params.dataType = "jsonp"; } // Attach the success callback ajax_params.success = function(results) { if($.isFunction(settings.onResult)) { results = settings.onResult.call(hidden_input, results); } cache.add(cache_key, settings.jsonContainer ? results[settings.jsonContainer] : results); // only populate the dropdown if the results are associated with the active search query if(input_box.val().toLowerCase() === query) { populate_dropdown(query, settings.jsonContainer ? results[settings.jsonContainer] : results); } }; // Make the request $.ajax(ajax_params); } else if(settings.local_data) { // Do the search through local data var results = $.grep(settings.local_data, function (row) { return row[settings.propertyToSearch].toLowerCase().indexOf(query.toLowerCase()) > -1; }); if($.isFunction(settings.onResult)) { results = settings.onResult.call(hidden_input, results); } cache.add(cache_key, results); populate_dropdown(query, results); } } } // compute the dynamic URL function computeURL() { var url = settings.url; if(typeof settings.url == 'function') { url = settings.url.call(); } return url; } }; // Really basic cache for the results $.TokenList.Cache = function (options) { var settings = $.extend({ max_size: 500 }, options); var data = {}; var size = 0; var flush = function () { data = {}; size = 0; }; this.add = function (query, results) { if(size > settings.max_size) { flush(); } if(!data[query]) { size += 1; } data[query] = results; }; this.get = function (query) { return data[query]; }; }; }(jQuery));
0x6a
trunk/libraries/tokeninput/jquery.tokeninput.js
JavaScript
asf20
27,645
/* Example tokeninput style #2: Mac Style */ fieldset.token-input-mac { position: relative; padding: 0; margin: 5px 0; background: #fff; width: 400px; border: 1px solid #A4BDEC; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; } fieldset.token-input-mac.token-input-dropdown-mac { border-radius: 10px 10px 0 0; -moz-border-radius: 10px 10px 0 0; -webkit-border-radius: 10px 10px 0 0; box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); } ul.token-input-list-mac { overflow: hidden; height: auto !important; height: 1%; cursor: text; font-size: 12px; font-family: Verdana; min-height: 1px; z-index: 999; margin: 0; padding: 3px; background: transparent; } ul.token-input-list-mac.error { border: 1px solid #C52020; } ul.token-input-list-mac li { list-style-type: none; } li.token-input-token-mac p { display: inline; padding: 0; margin: 0; } li.token-input-token-mac span { color: #a6b3cf; margin-left: 5px; font-weight: bold; cursor: pointer; } /* TOKENS */ li.token-input-token-mac { font-family: "Lucida Grande", Arial, serif; font-size: 9pt; line-height: 12pt; overflow: hidden; height: 16px; margin: 3px; padding: 0 10px; background: none; background-color: #dee7f8; color: #000; cursor: default; border: 1px solid #a4bdec; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; float: left; } li.token-input-highlighted-token-mac { background-color: #bbcef1; border: 1px solid #598bec; color: #000; } li.token-input-selected-token-mac { background-color: #598bec; border: 1px solid transparent; color: #fff; } li.token-input-highlighted-token-mac span.token-input-delete-token-mac { color: #000; } li.token-input-selected-token-mac span.token-input-delete-token-mac { color: #fff; } li.token-input-input-token-mac { border: none; background: transparent; float: left; padding: 0; margin: 0; } li.token-input-input-token-mac input { border: 0; width: 100px; padding: 3px; background-color: transparent; margin: 0; } div.token-input-dropdown-mac { position: absolute; border: 1px solid #A4BDEC; border-top: none; left: -1px; right: -1px; background-color: #fff; overflow: hidden; cursor: default; font-size: 10pt; font-family: "Lucida Grande", Arial, serif; padding: 5px; border-radius: 0 0 10px 10px; -moz-border-radius: 0 0 10px 10px; -webkit-border-radius: 0 0 10px 10px; box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); -moz-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); -webkit-box-shadow: 0 5px 20px 0 rgba(0,0,0,0.25); clip:rect(0px, 1000px, 1000px, -10px); } div.token-input-dropdown-mac p { font-size: 8pt; margin: 0; padding: 0 5px; font-style: italic; color: #aaa; } div.token-input-dropdown-mac h3.token-input-dropdown-category-mac { font-family: "Lucida Grande", Arial, serif; font-size: 10pt; font-weight: bold; border: none; padding: 0 5px; margin: 0; } div.token-input-dropdown-mac ul { margin: 0; padding: 0; } div.token-input-dropdown-mac ul li { list-style-type: none; cursor: pointer; background: none; background-color: #fff; margin: 0; padding: 0 0 0 25px; } div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac { background-color: #fff; } div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac.odd { background-color: #ECF4F9; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; } div.token-input-dropdown-mac ul li.token-input-dropdown-item-mac span.token-input-dropdown-item-description-mac { float: right; font-size: 8pt; font-style: italic; padding: 0 10px 0 0; color: #999; } div.token-input-dropdown-mac ul li strong { font-weight: bold; text-decoration: underline; font-style: none; } div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac, div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd { background-color: #598bec; color: #fff; border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; } div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac span.token-input-dropdown-item-description-mac, div.token-input-dropdown-mac ul li.token-input-selected-dropdown-item-mac.odd span.token-input-dropdown-item-description-mac { color: #fff; }
0x6a
trunk/libraries/tokeninput/token-input-mac.css
CSS
asf20
4,709
/* Example tokeninput style #2: Facebook style */ ul.token-input-list-facebook { overflow: hidden; height: auto !important; height: 1%; /* width: 400px;*/ border: 1px solid #8496ba; cursor: text; font-size: 12px; font-family: Verdana; min-height: 1px; z-index: 999; margin: 0; padding: 0; background-color: #fff; list-style-type: none; clear: left; } ul.token-input-list-facebook li input { border: 0; width: 100px; padding: 3px 8px; background-color: white; margin: 2px 0; -webkit-appearance: caret; } li.token-input-token-facebook { overflow: hidden; height: auto !important; height: 15px; margin: 3px; padding: 1px 3px; background-color: #eff2f7; color: #000; cursor: default; border: 1px solid #ccd5e4; font-size: 11px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; float: left; white-space: nowrap; } li.token-input-token-facebook p { display: inline; padding: 0; margin: 0; } li.token-input-token-facebook span { color: #a6b3cf; margin-left: 5px; font-weight: bold; cursor: pointer; } li.token-input-selected-token-facebook { background-color: #5670a6; border: 1px solid #3b5998; color: #fff; } li.token-input-input-token-facebook { float: left; margin: 0; padding: 0; list-style-type: none; } div.token-input-dropdown-facebook { position: absolute; /* width: 400px;*/ background-color: #fff; overflow: hidden; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; cursor: default; font-size: 11px; font-family: Verdana; z-index: 1; } div.token-input-dropdown-facebook p { margin: 0; padding: 5px; font-weight: bold; color: #777; } div.token-input-dropdown-facebook ul { margin: 0; padding: 0; } div.token-input-dropdown-facebook ul li { background-color: #fff; padding: 3px; margin: 0; list-style-type: none; } div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook { background-color: #fff; } div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook { background-color: #fff; } div.token-input-dropdown-facebook ul li em { font-weight: bold; font-style: normal; } div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook { background-color: #3b5998; color: #fff; }
0x6a
trunk/libraries/tokeninput/token-input-facebook.css
CSS
asf20
2,525
/* Example tokeninput style #1: Token vertical list*/ ul.token-input-list { overflow: hidden; height: auto !important; height: 1%; /* width: 400px;*/ border: 1px solid #999; cursor: text; font-size: 11px; font-family: tahoma; z-index: 999; margin: 0px 0; padding: 1px 0; background-color: #fff; list-style-type: none; clear: left; } ul.token-input-list li { list-style-type: none; height: 16px;padding: 4px; } ul.token-input-list li input { border: 0; /* width: 350px;*/ /* padding: 3px 8px;*/ margin: 0; -webkit-appearance: caret; } li.token-input-token { overflow: hidden; height: auto !important; height: 1%; margin: 3px; padding: 0px 4px; background-color: #ebebeb; color: #000; /* font-weight: bold;*/ cursor: default; display: block; } li.token-input-token p { float: left; padding: 0; margin: 0; max-width: 200px; } li.token-input-token span { float: right; color: #777; cursor: pointer; } li.token-input-selected-token { background-color: #bbb; color: #000; } li.token-input-selected-token span { color: #bbb; } div.token-input-dropdown { position: absolute; width: 400px; background-color: #fff; overflow: hidden; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; cursor: default; font-size: 11px; font-family: Tahoma; z-index: 1; } div.token-input-dropdown p { margin: 0; padding: 3px 7px 4px 8px; min-width: 212px; /* font-weight: bold;*/ color: #777; } div.token-input-dropdown ul { margin: 0; padding: 0; } div.token-input-dropdown ul li { background-color: #fff; padding: 3px 7px 4px 8px; list-style-type: none; min-width: 212px; } div.token-input-dropdown ul li.token-input-dropdown-item { background-color: #fafafa; } div.token-input-dropdown ul li.token-input-dropdown-item2 { background-color: #fff; } div.token-input-dropdown ul li em { /* font-weight: bold;*/ font-style: normal; } div.token-input-dropdown ul li.token-input-selected-dropdown-item { background-color: #ebebeb; } li.token-input-token .token-input-delete-token{ color: rgb(228, 4, 81); display: none; } li.token-input-token:hover .token-input-delete-token{ display: block; }
0x6a
trunk/libraries/tokeninput/token-input.css
CSS
asf20
2,399
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/tokeninput/index.html
HTML
asf20
1,319
/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2013 M. Alsup * Version: 3.0.2 (19-APR-2013) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.7.1 or later */ ;(function($, undefined) { "use strict"; var ver = '3.0.2'; function debug(s) { if ($.fn.cycle.debug) log(s); } function log() { if (window.console && console.log) console.log('[cycle] ' + Array.prototype.join.call(arguments,' ')); } $.expr[':'].paused = function(el) { return el.cyclePause; }; // the options arg can be... // a number - indicates an immediate transition should occur to the given slide index // a string - 'pause', 'resume', 'toggle', 'next', 'prev', 'stop', 'destroy' or the name of a transition effect (ie, 'fade', 'zoom', etc) // an object - properties to control the slideshow // // the arg2 arg can be... // the name of an fx (only used in conjunction with a numeric value for 'options') // the value true (only used in first arg == 'resume') and indicates // that the resume should occur immediately (not wait for next timeout) $.fn.cycle = function(options, arg2) { var o = { s: this.selector, c: this.context }; // in 1.3+ we can fix mistakes with the ready state if (this.length === 0 && options != 'stop') { if (!$.isReady && o.s) { log('DOM not ready, queuing slideshow'); $(function() { $(o.s,o.c).cycle(options,arg2); }); return this; } // is your DOM ready? http://docs.jquery.com/Tutorials:Introducing_$(document).ready() log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)')); return this; } // iterate the matched nodeset return this.each(function() { var opts = handleArguments(this, options, arg2); if (opts === false) return; opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink; // stop existing slideshow for this container (if there is one) if (this.cycleTimeout) clearTimeout(this.cycleTimeout); this.cycleTimeout = this.cyclePause = 0; this.cycleStop = 0; // issue #108 var $cont = $(this); var $slides = opts.slideExpr ? $(opts.slideExpr, this) : $cont.children(); var els = $slides.get(); if (els.length < 2) { log('terminating; too few slides: ' + els.length); return; } var opts2 = buildOptions($cont, $slides, els, opts, o); if (opts2 === false) return; var startTime = opts2.continuous ? 10 : getTimeout(els[opts2.currSlide], els[opts2.nextSlide], opts2, !opts2.backwards); // if it's an auto slideshow, kick it off if (startTime) { startTime += (opts2.delay || 0); if (startTime < 10) startTime = 10; debug('first timeout: ' + startTime); this.cycleTimeout = setTimeout(function(){go(els,opts2,0,!opts.backwards);}, startTime); } }); }; function triggerPause(cont, byHover, onPager) { var opts = $(cont).data('cycle.opts'); if (!opts) return; var paused = !!cont.cyclePause; if (paused && opts.paused) opts.paused(cont, opts, byHover, onPager); else if (!paused && opts.resumed) opts.resumed(cont, opts, byHover, onPager); } // process the args that were passed to the plugin fn function handleArguments(cont, options, arg2) { if (cont.cycleStop === undefined) cont.cycleStop = 0; if (options === undefined || options === null) options = {}; if (options.constructor == String) { switch(options) { case 'destroy': case 'stop': var opts = $(cont).data('cycle.opts'); if (!opts) return false; cont.cycleStop++; // callbacks look for change if (cont.cycleTimeout) clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; if (opts.elements) $(opts.elements).stop(); $(cont).removeData('cycle.opts'); if (options == 'destroy') destroy(cont, opts); return false; case 'toggle': cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1; checkInstantResume(cont.cyclePause, arg2, cont); triggerPause(cont); return false; case 'pause': cont.cyclePause = 1; triggerPause(cont); return false; case 'resume': cont.cyclePause = 0; checkInstantResume(false, arg2, cont); triggerPause(cont); return false; case 'prev': case 'next': opts = $(cont).data('cycle.opts'); if (!opts) { log('options not found, "prev/next" ignored'); return false; } if (typeof arg2 == 'string') opts.oneTimeFx = arg2; $.fn.cycle[options](opts); return false; default: options = { fx: options }; } return options; } else if (options.constructor == Number) { // go to the requested slide var num = options; options = $(cont).data('cycle.opts'); if (!options) { log('options not found, can not advance slide'); return false; } if (num < 0 || num >= options.elements.length) { log('invalid slide index: ' + num); return false; } options.nextSlide = num; if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; } if (typeof arg2 == 'string') options.oneTimeFx = arg2; go(options.elements, options, 1, num >= options.currSlide); return false; } return options; function checkInstantResume(isPaused, arg2, cont) { if (!isPaused && arg2 === true) { // resume now! var options = $(cont).data('cycle.opts'); if (!options) { log('options not found, can not resume'); return false; } if (cont.cycleTimeout) { clearTimeout(cont.cycleTimeout); cont.cycleTimeout = 0; } go(options.elements, options, 1, !options.backwards); } } } function removeFilter(el, opts) { if (!$.support.opacity && opts.cleartype && el.style.filter) { try { el.style.removeAttribute('filter'); } catch(smother) {} // handle old opera versions } } // unbind event handlers function destroy(cont, opts) { if (opts.next) $(opts.next).unbind(opts.prevNextEvent); if (opts.prev) $(opts.prev).unbind(opts.prevNextEvent); if (opts.pager || opts.pagerAnchorBuilder) $.each(opts.pagerAnchors || [], function() { this.unbind().remove(); }); opts.pagerAnchors = null; $(cont).unbind('mouseenter.cycle mouseleave.cycle'); if (opts.destroy) // callback opts.destroy(opts); } // one-time initialization function buildOptions($cont, $slides, els, options, o) { var startingSlideSpecified; // support metadata plugin (v1.0 and v2.0) var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null; if (meta) opts = $.extend(opts, meta); if (opts.autostop) opts.countdown = opts.autostopCount || els.length; var cont = $cont[0]; $cont.data('cycle.opts', opts); opts.$cont = $cont; opts.stopCount = cont.cycleStop; opts.elements = els; opts.before = opts.before ? [opts.before] : []; opts.after = opts.after ? [opts.after] : []; // push some after callbacks if (!$.support.opacity && opts.cleartype) opts.after.push(function() { removeFilter(this, opts); }); if (opts.continuous) opts.after.push(function() { go(els,opts,0,!opts.backwards); }); saveOriginalOpts(opts); // clearType corrections if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) clearTypeFix($slides); // container requires non-static position so that slides can be position within if ($cont.css('position') == 'static') $cont.css('position', 'relative'); if (opts.width) $cont.width(opts.width); if (opts.height && opts.height != 'auto') $cont.height(opts.height); if (opts.startingSlide !== undefined) { opts.startingSlide = parseInt(opts.startingSlide,10); if (opts.startingSlide >= els.length || opts.startSlide < 0) opts.startingSlide = 0; // catch bogus input else startingSlideSpecified = true; } else if (opts.backwards) opts.startingSlide = els.length - 1; else opts.startingSlide = 0; // if random, mix up the slide array if (opts.random) { opts.randomMap = []; for (var i = 0; i < els.length; i++) opts.randomMap.push(i); opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;}); if (startingSlideSpecified) { // try to find the specified starting slide and if found set start slide index in the map accordingly for ( var cnt = 0; cnt < els.length; cnt++ ) { if ( opts.startingSlide == opts.randomMap[cnt] ) { opts.randomIndex = cnt; } } } else { opts.randomIndex = 1; opts.startingSlide = opts.randomMap[1]; } } else if (opts.startingSlide >= els.length) opts.startingSlide = 0; // catch bogus input opts.currSlide = opts.startingSlide || 0; var first = opts.startingSlide; // set position and zIndex on all the slides $slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) { var z; if (opts.backwards) z = first ? i <= first ? els.length + (i-first) : first-i : els.length-i; else z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i; $(this).css('z-index', z); }); // make sure first slide is visible $(els[first]).css('opacity',1).show(); // opacity bit needed to handle restart use case removeFilter(els[first], opts); // stretch slides if (opts.fit) { if (!opts.aspect) { if (opts.width) $slides.width(opts.width); if (opts.height && opts.height != 'auto') $slides.height(opts.height); } else { $slides.each(function(){ var $slide = $(this); var ratio = (opts.aspect === true) ? $slide.width()/$slide.height() : opts.aspect; if( opts.width && $slide.width() != opts.width ) { $slide.width( opts.width ); $slide.height( opts.width / ratio ); } if( opts.height && $slide.height() < opts.height ) { $slide.height( opts.height ); $slide.width( opts.height * ratio ); } }); } } if (opts.center && ((!opts.fit) || opts.aspect)) { $slides.each(function(){ var $slide = $(this); $slide.css({ "margin-left": opts.width ? ((opts.width - $slide.width()) / 2) + "px" : 0, "margin-top": opts.height ? ((opts.height - $slide.height()) / 2) + "px" : 0 }); }); } if (opts.center && !opts.fit && !opts.slideResize) { $slides.each(function(){ var $slide = $(this); $slide.css({ "margin-left": opts.width ? ((opts.width - $slide.width()) / 2) + "px" : 0, "margin-top": opts.height ? ((opts.height - $slide.height()) / 2) + "px" : 0 }); }); } // stretch container var reshape = (opts.containerResize || opts.containerResizeHeight) && $cont.innerHeight() < 1; if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9 var maxw = 0, maxh = 0; for(var j=0; j < els.length; j++) { var $e = $(els[j]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight(); if (!w) w = e.offsetWidth || e.width || $e.attr('width'); if (!h) h = e.offsetHeight || e.height || $e.attr('height'); maxw = w > maxw ? w : maxw; maxh = h > maxh ? h : maxh; } if (opts.containerResize && maxw > 0 && maxh > 0) $cont.css({width:maxw+'px',height:maxh+'px'}); if (opts.containerResizeHeight && maxh > 0) $cont.css({height:maxh+'px'}); } var pauseFlag = false; // https://github.com/malsup/cycle/issues/44 if (opts.pause) $cont.bind('mouseenter.cycle', function(){ pauseFlag = true; this.cyclePause++; triggerPause(cont, true); }).bind('mouseleave.cycle', function(){ if (pauseFlag) this.cyclePause--; triggerPause(cont, true); }); if (supportMultiTransitions(opts) === false) return false; // apparently a lot of people use image slideshows without height/width attributes on the images. // Cycle 2.50+ requires the sizing info for every slide; this block tries to deal with that. var requeue = false; options.requeueAttempts = options.requeueAttempts || 0; $slides.each(function() { // try to get height/width of each slide var $el = $(this); this.cycleH = (opts.fit && opts.height) ? opts.height : ($el.height() || this.offsetHeight || this.height || $el.attr('height') || 0); this.cycleW = (opts.fit && opts.width) ? opts.width : ($el.width() || this.offsetWidth || this.width || $el.attr('width') || 0); if ( $el.is('img') ) { var loading = (this.cycleH === 0 && this.cycleW === 0 && !this.complete); // don't requeue for images that are still loading but have a valid size if (loading) { if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { // track retry count so we don't loop forever log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ', this.src, this.cycleW, this.cycleH); setTimeout(function() {$(o.s,o.c).cycle(options);}, opts.requeueTimeout); requeue = true; return false; // break each loop } else { log('could not determine size of image: '+this.src, this.cycleW, this.cycleH); } } } return true; }); if (requeue) return false; opts.cssBefore = opts.cssBefore || {}; opts.cssAfter = opts.cssAfter || {}; opts.cssFirst = opts.cssFirst || {}; opts.animIn = opts.animIn || {}; opts.animOut = opts.animOut || {}; $slides.not(':eq('+first+')').css(opts.cssBefore); $($slides[first]).css(opts.cssFirst); if (opts.timeout) { opts.timeout = parseInt(opts.timeout,10); // ensure that timeout and speed settings are sane if (opts.speed.constructor == String) opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed,10); if (!opts.sync) opts.speed = opts.speed / 2; var buffer = opts.fx == 'none' ? 0 : opts.fx == 'shuffle' ? 500 : 250; while((opts.timeout - opts.speed) < buffer) // sanitize timeout opts.timeout += opts.speed; } if (opts.easing) opts.easeIn = opts.easeOut = opts.easing; if (!opts.speedIn) opts.speedIn = opts.speed; if (!opts.speedOut) opts.speedOut = opts.speed; opts.slideCount = els.length; opts.currSlide = opts.lastSlide = first; if (opts.random) { if (++opts.randomIndex == els.length) opts.randomIndex = 0; opts.nextSlide = opts.randomMap[opts.randomIndex]; } else if (opts.backwards) opts.nextSlide = opts.startingSlide === 0 ? (els.length-1) : opts.startingSlide-1; else opts.nextSlide = opts.startingSlide >= (els.length-1) ? 0 : opts.startingSlide+1; // run transition init fn if (!opts.multiFx) { var init = $.fn.cycle.transitions[opts.fx]; if ($.isFunction(init)) init($cont, $slides, opts); else if (opts.fx != 'custom' && !opts.multiFx) { log('unknown transition: ' + opts.fx,'; slideshow terminating'); return false; } } // fire artificial events var e0 = $slides[first]; if (!opts.skipInitializationCallbacks) { if (opts.before.length) opts.before[0].apply(e0, [e0, e0, opts, true]); if (opts.after.length) opts.after[0].apply(e0, [e0, e0, opts, true]); } if (opts.next) $(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);}); if (opts.prev) $(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);}); if (opts.pager || opts.pagerAnchorBuilder) buildPager(els,opts); exposeAddSlide(opts, els); return opts; } // save off original opts so we can restore after clearing state function saveOriginalOpts(opts) { opts.original = { before: [], after: [] }; opts.original.cssBefore = $.extend({}, opts.cssBefore); opts.original.cssAfter = $.extend({}, opts.cssAfter); opts.original.animIn = $.extend({}, opts.animIn); opts.original.animOut = $.extend({}, opts.animOut); $.each(opts.before, function() { opts.original.before.push(this); }); $.each(opts.after, function() { opts.original.after.push(this); }); } function supportMultiTransitions(opts) { var i, tx, txs = $.fn.cycle.transitions; // look for multiple effects if (opts.fx.indexOf(',') > 0) { opts.multiFx = true; opts.fxs = opts.fx.replace(/\s*/g,'').split(','); // discard any bogus effect names for (i=0; i < opts.fxs.length; i++) { var fx = opts.fxs[i]; tx = txs[fx]; if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) { log('discarding unknown transition: ',fx); opts.fxs.splice(i,1); i--; } } // if we have an empty list then we threw everything away! if (!opts.fxs.length) { log('No valid transitions named; slideshow terminating.'); return false; } } else if (opts.fx == 'all') { // auto-gen the list of transitions opts.multiFx = true; opts.fxs = []; for (var p in txs) { if (txs.hasOwnProperty(p)) { tx = txs[p]; if (txs.hasOwnProperty(p) && $.isFunction(tx)) opts.fxs.push(p); } } } if (opts.multiFx && opts.randomizeEffects) { // munge the fxs array to make effect selection random var r1 = Math.floor(Math.random() * 20) + 30; for (i = 0; i < r1; i++) { var r2 = Math.floor(Math.random() * opts.fxs.length); opts.fxs.push(opts.fxs.splice(r2,1)[0]); } debug('randomized fx sequence: ',opts.fxs); } return true; } // provide a mechanism for adding slides after the slideshow has started function exposeAddSlide(opts, els) { opts.addSlide = function(newSlide, prepend) { var $s = $(newSlide), s = $s[0]; if (!opts.autostopCount) opts.countdown++; els[prepend?'unshift':'push'](s); if (opts.els) opts.els[prepend?'unshift':'push'](s); // shuffle needs this opts.slideCount = els.length; // add the slide to the random map and resort if (opts.random) { opts.randomMap.push(opts.slideCount-1); opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;}); } $s.css('position','absolute'); $s[prepend?'prependTo':'appendTo'](opts.$cont); if (prepend) { opts.currSlide++; opts.nextSlide++; } if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg) clearTypeFix($s); if (opts.fit && opts.width) $s.width(opts.width); if (opts.fit && opts.height && opts.height != 'auto') $s.height(opts.height); s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height(); s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width(); $s.css(opts.cssBefore); if (opts.pager || opts.pagerAnchorBuilder) $.fn.cycle.createPagerAnchor(els.length-1, s, $(opts.pager), els, opts); if ($.isFunction(opts.onAddSlide)) opts.onAddSlide($s); else $s.hide(); // default behavior }; } // reset internal state; we do this on every pass in order to support multiple effects $.fn.cycle.resetState = function(opts, fx) { fx = fx || opts.fx; opts.before = []; opts.after = []; opts.cssBefore = $.extend({}, opts.original.cssBefore); opts.cssAfter = $.extend({}, opts.original.cssAfter); opts.animIn = $.extend({}, opts.original.animIn); opts.animOut = $.extend({}, opts.original.animOut); opts.fxFn = null; $.each(opts.original.before, function() { opts.before.push(this); }); $.each(opts.original.after, function() { opts.after.push(this); }); // re-init var init = $.fn.cycle.transitions[fx]; if ($.isFunction(init)) init(opts.$cont, $(opts.elements), opts); }; // this is the main engine fn, it handles the timeouts, callbacks and slide index mgmt function go(els, opts, manual, fwd) { var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide]; // opts.busy is true if we're in the middle of an animation if (manual && opts.busy && opts.manualTrump) { // let manual transitions requests trump active ones debug('manualTrump in go(), stopping active transition'); $(els).stop(true,true); opts.busy = 0; clearTimeout(p.cycleTimeout); } // don't begin another timeout-based transition if there is one active if (opts.busy) { debug('transition active, ignoring new tx request'); return; } // stop cycling if we have an outstanding stop request if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual) return; // check to see if we should stop cycling based on autostop options if (!manual && !p.cyclePause && !opts.bounce && ((opts.autostop && (--opts.countdown <= 0)) || (opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) { if (opts.end) opts.end(opts); return; } // if slideshow is paused, only transition on a manual trigger var changed = false; if ((manual || !p.cyclePause) && (opts.nextSlide != opts.currSlide)) { changed = true; var fx = opts.fx; // keep trying to get the slide size if we don't have it yet curr.cycleH = curr.cycleH || $(curr).height(); curr.cycleW = curr.cycleW || $(curr).width(); next.cycleH = next.cycleH || $(next).height(); next.cycleW = next.cycleW || $(next).width(); // support multiple transition types if (opts.multiFx) { if (fwd && (opts.lastFx === undefined || ++opts.lastFx >= opts.fxs.length)) opts.lastFx = 0; else if (!fwd && (opts.lastFx === undefined || --opts.lastFx < 0)) opts.lastFx = opts.fxs.length - 1; fx = opts.fxs[opts.lastFx]; } // one-time fx overrides apply to: $('div').cycle(3,'zoom'); if (opts.oneTimeFx) { fx = opts.oneTimeFx; opts.oneTimeFx = null; } $.fn.cycle.resetState(opts, fx); // run the before callbacks if (opts.before.length) $.each(opts.before, function(i,o) { if (p.cycleStop != opts.stopCount) return; o.apply(next, [curr, next, opts, fwd]); }); // stage the after callacks var after = function() { opts.busy = 0; $.each(opts.after, function(i,o) { if (p.cycleStop != opts.stopCount) return; o.apply(next, [curr, next, opts, fwd]); }); if (!p.cycleStop) { // queue next transition queueNext(); } }; debug('tx firing('+fx+'); currSlide: ' + opts.currSlide + '; nextSlide: ' + opts.nextSlide); // get ready to perform the transition opts.busy = 1; if (opts.fxFn) // fx function provided? opts.fxFn(curr, next, opts, after, fwd, manual && opts.fastOnEvent); else if ($.isFunction($.fn.cycle[opts.fx])) // fx plugin ? $.fn.cycle[opts.fx](curr, next, opts, after, fwd, manual && opts.fastOnEvent); else $.fn.cycle.custom(curr, next, opts, after, fwd, manual && opts.fastOnEvent); } else { queueNext(); } if (changed || opts.nextSlide == opts.currSlide) { // calculate the next slide var roll; opts.lastSlide = opts.currSlide; if (opts.random) { opts.currSlide = opts.nextSlide; if (++opts.randomIndex == els.length) { opts.randomIndex = 0; opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;}); } opts.nextSlide = opts.randomMap[opts.randomIndex]; if (opts.nextSlide == opts.currSlide) opts.nextSlide = (opts.currSlide == opts.slideCount - 1) ? 0 : opts.currSlide + 1; } else if (opts.backwards) { roll = (opts.nextSlide - 1) < 0; if (roll && opts.bounce) { opts.backwards = !opts.backwards; opts.nextSlide = 1; opts.currSlide = 0; } else { opts.nextSlide = roll ? (els.length-1) : opts.nextSlide-1; opts.currSlide = roll ? 0 : opts.nextSlide+1; } } else { // sequence roll = (opts.nextSlide + 1) == els.length; if (roll && opts.bounce) { opts.backwards = !opts.backwards; opts.nextSlide = els.length-2; opts.currSlide = els.length-1; } else { opts.nextSlide = roll ? 0 : opts.nextSlide+1; opts.currSlide = roll ? els.length-1 : opts.nextSlide-1; } } } if (changed && opts.pager) opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass); function queueNext() { // stage the next transition var ms = 0, timeout = opts.timeout; if (opts.timeout && !opts.continuous) { ms = getTimeout(els[opts.currSlide], els[opts.nextSlide], opts, fwd); if (opts.fx == 'shuffle') ms -= opts.speedOut; } else if (opts.continuous && p.cyclePause) // continuous shows work off an after callback, not this timer logic ms = 10; if (ms > 0) p.cycleTimeout = setTimeout(function(){ go(els, opts, 0, !opts.backwards); }, ms); } } // invoked after transition $.fn.cycle.updateActivePagerLink = function(pager, currSlide, clsName) { $(pager).each(function() { $(this).children().removeClass(clsName).eq(currSlide).addClass(clsName); }); }; // calculate timeout value for current transition function getTimeout(curr, next, opts, fwd) { if (opts.timeoutFn) { // call user provided calc fn var t = opts.timeoutFn.call(curr,curr,next,opts,fwd); while (opts.fx != 'none' && (t - opts.speed) < 250) // sanitize timeout t += opts.speed; debug('calculated timeout: ' + t + '; speed: ' + opts.speed); if (t !== false) return t; } return opts.timeout; } // expose next/prev function, caller must pass in state $.fn.cycle.next = function(opts) { advance(opts,1); }; $.fn.cycle.prev = function(opts) { advance(opts,0);}; // advance slide forward or back function advance(opts, moveForward) { var val = moveForward ? 1 : -1; var els = opts.elements; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } if (opts.random && val < 0) { // move back to the previously display slide opts.randomIndex--; if (--opts.randomIndex == -2) opts.randomIndex = els.length-2; else if (opts.randomIndex == -1) opts.randomIndex = els.length-1; opts.nextSlide = opts.randomMap[opts.randomIndex]; } else if (opts.random) { opts.nextSlide = opts.randomMap[opts.randomIndex]; } else { opts.nextSlide = opts.currSlide + val; if (opts.nextSlide < 0) { if (opts.nowrap) return false; opts.nextSlide = els.length - 1; } else if (opts.nextSlide >= els.length) { if (opts.nowrap) return false; opts.nextSlide = 0; } } var cb = opts.onPrevNextEvent || opts.prevNextClick; // prevNextClick is deprecated if ($.isFunction(cb)) cb(val > 0, opts.nextSlide, els[opts.nextSlide]); go(els, opts, 1, moveForward); return false; } function buildPager(els, opts) { var $p = $(opts.pager); $.each(els, function(i,o) { $.fn.cycle.createPagerAnchor(i,o,$p,els,opts); }); opts.updateActivePagerLink(opts.pager, opts.startingSlide, opts.activePagerClass); } $.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) { var a; if ($.isFunction(opts.pagerAnchorBuilder)) { a = opts.pagerAnchorBuilder(i,el); debug('pagerAnchorBuilder('+i+', el) returned: ' + a); } else a = '<a href="#">'+(i+1)+'</a>'; if (!a) return; var $a = $(a); // don't reparent if anchor is in the dom if ($a.parents('body').length === 0) { var arr = []; if ($p.length > 1) { $p.each(function() { var $clone = $a.clone(true); $(this).append($clone); arr.push($clone[0]); }); $a = $(arr); } else { $a.appendTo($p); } } opts.pagerAnchors = opts.pagerAnchors || []; opts.pagerAnchors.push($a); var pagerFn = function(e) { e.preventDefault(); opts.nextSlide = i; var p = opts.$cont[0], timeout = p.cycleTimeout; if (timeout) { clearTimeout(timeout); p.cycleTimeout = 0; } var cb = opts.onPagerEvent || opts.pagerClick; // pagerClick is deprecated if ($.isFunction(cb)) cb(opts.nextSlide, els[opts.nextSlide]); go(els,opts,1,opts.currSlide < i); // trigger the trans // return false; // <== allow bubble }; if ( /mouseenter|mouseover/i.test(opts.pagerEvent) ) { $a.hover(pagerFn, function(){/* no-op */} ); } else { $a.bind(opts.pagerEvent, pagerFn); } if ( ! /^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble) $a.bind('click.cycle', function(){return false;}); // suppress click var cont = opts.$cont[0]; var pauseFlag = false; // https://github.com/malsup/cycle/issues/44 if (opts.pauseOnPagerHover) { $a.hover( function() { pauseFlag = true; cont.cyclePause++; triggerPause(cont,true,true); }, function() { if (pauseFlag) cont.cyclePause--; triggerPause(cont,true,true); } ); } }; // helper fn to calculate the number of slides between the current and the next $.fn.cycle.hopsFromLast = function(opts, fwd) { var hops, l = opts.lastSlide, c = opts.currSlide; if (fwd) hops = c > l ? c - l : opts.slideCount - l; else hops = c < l ? l - c : l + opts.slideCount - c; return hops; }; // fix clearType problems in ie6 by setting an explicit bg color // (otherwise text slides look horrible during a fade transition) function clearTypeFix($slides) { debug('applying clearType background-color hack'); function hex(s) { s = parseInt(s,10).toString(16); return s.length < 2 ? '0'+s : s; } function getBg(e) { for ( ; e && e.nodeName.toLowerCase() != 'html'; e = e.parentNode) { var v = $.css(e,'background-color'); if (v && v.indexOf('rgb') >= 0 ) { var rgb = v.match(/\d+/g); return '#'+ hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); } if (v && v != 'transparent') return v; } return '#ffffff'; } $slides.each(function() { $(this).css('background-color', getBg(this)); }); } // reset common props before the next transition $.fn.cycle.commonReset = function(curr,next,opts,w,h,rev) { $(opts.elements).not(curr).hide(); if (typeof opts.cssBefore.opacity == 'undefined') opts.cssBefore.opacity = 1; opts.cssBefore.display = 'block'; if (opts.slideResize && w !== false && next.cycleW > 0) opts.cssBefore.width = next.cycleW; if (opts.slideResize && h !== false && next.cycleH > 0) opts.cssBefore.height = next.cycleH; opts.cssAfter = opts.cssAfter || {}; opts.cssAfter.display = 'none'; $(curr).css('zIndex',opts.slideCount + (rev === true ? 1 : 0)); $(next).css('zIndex',opts.slideCount + (rev === true ? 0 : 1)); }; // the actual fn for effecting a transition $.fn.cycle.custom = function(curr, next, opts, cb, fwd, speedOverride) { var $l = $(curr), $n = $(next); var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut; $n.css(opts.cssBefore); if (speedOverride) { if (typeof speedOverride == 'number') speedIn = speedOut = speedOverride; else speedIn = speedOut = 1; easeIn = easeOut = null; } var fn = function() { $n.animate(opts.animIn, speedIn, easeIn, function() { cb(); }); }; $l.animate(opts.animOut, speedOut, easeOut, function() { $l.css(opts.cssAfter); if (!opts.sync) fn(); }); if (opts.sync) fn(); }; // transition definitions - only fade is defined here, transition pack defines the rest $.fn.cycle.transitions = { fade: function($cont, $slides, opts) { $slides.not(':eq('+opts.currSlide+')').css('opacity',0); opts.before.push(function(curr,next,opts) { $.fn.cycle.commonReset(curr,next,opts); opts.cssBefore.opacity = 0; }); opts.animIn = { opacity: 1 }; opts.animOut = { opacity: 0 }; opts.cssBefore = { top: 0, left: 0 }; } }; $.fn.cycle.ver = function() { return ver; }; // override these globally if you like (they are all optional) $.fn.cycle.defaults = { activePagerClass: 'activeSlide', // class name used for the active pager link after: null, // transition callback (scope set to element that was shown): function(currSlideElement, nextSlideElement, options, forwardFlag) allowPagerClickBubble: false, // allows or prevents click event on pager anchors from bubbling animIn: null, // properties that define how the slide animates in animOut: null, // properties that define how the slide animates out aspect: false, // preserve aspect ratio during fit resizing, cropping if necessary (must be used with fit option) autostop: 0, // true to end slideshow after X transitions (where X == slide count) autostopCount: 0, // number of transitions (optionally used with autostop to define X) backwards: false, // true to start slideshow at last slide and move backwards through the stack before: null, // transition callback (scope set to element to be shown): function(currSlideElement, nextSlideElement, options, forwardFlag) center: null, // set to true to have cycle add top/left margin to each slide (use with width and height options) cleartype: !$.support.opacity, // true if clearType corrections should be applied (for IE) cleartypeNoBg: false, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides) containerResize: 1, // resize container to fit largest slide containerResizeHeight: 0, // resize containers height to fit the largest slide but leave the width dynamic continuous: 0, // true to start next transition immediately after current one completes cssAfter: null, // properties that defined the state of the slide after transitioning out cssBefore: null, // properties that define the initial state of the slide before transitioning in delay: 0, // additional delay (in ms) for first transition (hint: can be negative) easeIn: null, // easing for "in" transition easeOut: null, // easing for "out" transition easing: null, // easing method for both in and out transitions end: null, // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options) fastOnEvent: 0, // force fast transitions when triggered manually (via pager or prev/next); value == time in ms fit: 0, // force slides to fit container fx: 'fade', // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle') fxFn: null, // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag) height: 'auto', // container height (if the 'fit' option is true, the slides will be set to this height as well) manualTrump: true, // causes manual transition to stop an active transition instead of being ignored metaAttr: 'cycle', // data- attribute that holds the option data for the slideshow next: null, // element, jQuery object, or jQuery selector string for the element to use as event trigger for next slide nowrap: 0, // true to prevent slideshow from wrapping onPagerEvent: null, // callback fn for pager events: function(zeroBasedSlideIndex, slideElement) onPrevNextEvent: null, // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement) pager: null, // element, jQuery object, or jQuery selector string for the element to use as pager container pagerAnchorBuilder: null, // callback fn for building anchor links: function(index, DOMelement) pagerEvent: 'click.cycle', // name of event which drives the pager navigation pause: 0, // true to enable "pause on hover" pauseOnPagerHover: 0, // true to pause when hovering over pager link prev: null, // element, jQuery object, or jQuery selector string for the element to use as event trigger for previous slide prevNextEvent: 'click.cycle',// event which drives the manual transition to the previous or next slide random: 0, // true for random, false for sequence (not applicable to shuffle fx) randomizeEffects: 1, // valid when multiple effects are used; true to make the effect sequence random requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded requeueTimeout: 250, // ms delay for requeue rev: 0, // causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle) shuffle: null, // coords for shuffle animation, ex: { top:15, left: 200 } skipInitializationCallbacks: false, // set to true to disable the first before/after callback that occurs prior to any transition slideExpr: null, // expression for selecting slides (if something other than all children is required) slideResize: 1, // force slide width/height to fixed size before every transition speed: 1000, // speed of the transition (any valid fx speed value) speedIn: null, // speed of the 'in' transition speedOut: null, // speed of the 'out' transition startingSlide: undefined,// zero-based index of the first slide to be displayed sync: 1, // true if in/out transitions should occur simultaneously timeout: 4000, // milliseconds between slide transitions (0 to disable auto advance) timeoutFn: null, // callback for determining per-slide timeout value: function(currSlideElement, nextSlideElement, options, forwardFlag) updateActivePagerLink: null,// callback fn invoked to update the active pager link (adds/removes activePagerClass style) width: null // container width (if the 'fit' option is true, the slides will be set to this width as well) }; })(jQuery); /*! * jQuery Cycle Plugin Transition Definitions * This script is a plugin for the jQuery Cycle Plugin * Examples and documentation at: http://malsup.com/jquery/cycle/ * Copyright (c) 2007-2010 M. Alsup * Version: 2.73 * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ (function($) { "use strict"; // // These functions define slide initialization and properties for the named // transitions. To save file size feel free to remove any of these that you // don't need. // $.fn.cycle.transitions.none = function($cont, $slides, opts) { opts.fxFn = function(curr,next,opts,after){ $(next).show(); $(curr).hide(); after(); }; }; // not a cross-fade, fadeout only fades out the top slide $.fn.cycle.transitions.fadeout = function($cont, $slides, opts) { $slides.not(':eq('+opts.currSlide+')').css({ display: 'block', 'opacity': 1 }); opts.before.push(function(curr,next,opts,w,h,rev) { $(curr).css('zIndex',opts.slideCount + (rev !== true ? 1 : 0)); $(next).css('zIndex',opts.slideCount + (rev !== true ? 0 : 1)); }); opts.animIn.opacity = 1; opts.animOut.opacity = 0; opts.cssBefore.opacity = 1; opts.cssBefore.display = 'block'; opts.cssAfter.zIndex = 0; }; // scrollUp/Down/Left/Right $.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) { $cont.css('overflow','hidden'); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssBefore.top = h; opts.cssBefore.left = 0; opts.cssFirst.top = 0; opts.animIn.top = 0; opts.animOut.top = -h; }; $.fn.cycle.transitions.scrollDown = function($cont, $slides, opts) { $cont.css('overflow','hidden'); opts.before.push($.fn.cycle.commonReset); var h = $cont.height(); opts.cssFirst.top = 0; opts.cssBefore.top = -h; opts.cssBefore.left = 0; opts.animIn.top = 0; opts.animOut.top = h; }; $.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) { $cont.css('overflow','hidden'); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst.left = 0; opts.cssBefore.left = w; opts.cssBefore.top = 0; opts.animIn.left = 0; opts.animOut.left = 0-w; }; $.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) { $cont.css('overflow','hidden'); opts.before.push($.fn.cycle.commonReset); var w = $cont.width(); opts.cssFirst.left = 0; opts.cssBefore.left = -w; opts.cssBefore.top = 0; opts.animIn.left = 0; opts.animOut.left = w; }; $.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) { $cont.css('overflow','hidden').width(); opts.before.push(function(curr, next, opts, fwd) { if (opts.rev) fwd = !fwd; $.fn.cycle.commonReset(curr,next,opts); opts.cssBefore.left = fwd ? (next.cycleW-1) : (1-next.cycleW); opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW; }); opts.cssFirst.left = 0; opts.cssBefore.top = 0; opts.animIn.left = 0; opts.animOut.top = 0; }; $.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) { $cont.css('overflow','hidden'); opts.before.push(function(curr, next, opts, fwd) { if (opts.rev) fwd = !fwd; $.fn.cycle.commonReset(curr,next,opts); opts.cssBefore.top = fwd ? (1-next.cycleH) : (next.cycleH-1); opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH; }); opts.cssFirst.top = 0; opts.cssBefore.left = 0; opts.animIn.top = 0; opts.animOut.left = 0; }; // slideX/slideY $.fn.cycle.transitions.slideX = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr,next,opts,false,true); opts.animIn.width = next.cycleW; }); opts.cssBefore.left = 0; opts.cssBefore.top = 0; opts.cssBefore.width = 0; opts.animIn.width = 'show'; opts.animOut.width = 0; }; $.fn.cycle.transitions.slideY = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $(opts.elements).not(curr).hide(); $.fn.cycle.commonReset(curr,next,opts,true,false); opts.animIn.height = next.cycleH; }); opts.cssBefore.left = 0; opts.cssBefore.top = 0; opts.cssBefore.height = 0; opts.animIn.height = 'show'; opts.animOut.height = 0; }; // shuffle $.fn.cycle.transitions.shuffle = function($cont, $slides, opts) { var i, w = $cont.css('overflow', 'visible').width(); $slides.css({left: 0, top: 0}); opts.before.push(function(curr,next,opts) { $.fn.cycle.commonReset(curr,next,opts,true,true,true); }); // only adjust speed once! if (!opts.speedAdjusted) { opts.speed = opts.speed / 2; // shuffle has 2 transitions opts.speedAdjusted = true; } opts.random = 0; opts.shuffle = opts.shuffle || {left:-w, top:15}; opts.els = []; for (i=0; i < $slides.length; i++) opts.els.push($slides[i]); for (i=0; i < opts.currSlide; i++) opts.els.push(opts.els.shift()); // custom transition fn (hat tip to Benjamin Sterling for this bit of sweetness!) opts.fxFn = function(curr, next, opts, cb, fwd) { if (opts.rev) fwd = !fwd; var $el = fwd ? $(curr) : $(next); $(next).css(opts.cssBefore); var count = opts.slideCount; $el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function() { var hops = $.fn.cycle.hopsFromLast(opts, fwd); for (var k=0; k < hops; k++) { if (fwd) opts.els.push(opts.els.shift()); else opts.els.unshift(opts.els.pop()); } if (fwd) { for (var i=0, len=opts.els.length; i < len; i++) $(opts.els[i]).css('z-index', len-i+count); } else { var z = $(curr).css('z-index'); $el.css('z-index', parseInt(z,10)+1+count); } $el.animate({left:0, top:0}, opts.speedOut, opts.easeOut, function() { $(fwd ? this : curr).hide(); if (cb) cb(); }); }); }; $.extend(opts.cssBefore, { display: 'block', opacity: 1, top: 0, left: 0 }); }; // turnUp/Down/Left/Right $.fn.cycle.transitions.turnUp = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,false); opts.cssBefore.top = next.cycleH; opts.animIn.height = next.cycleH; opts.animOut.width = next.cycleW; }); opts.cssFirst.top = 0; opts.cssBefore.left = 0; opts.cssBefore.height = 0; opts.animIn.top = 0; opts.animOut.height = 0; }; $.fn.cycle.transitions.turnDown = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,false); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssFirst.top = 0; opts.cssBefore.left = 0; opts.cssBefore.top = 0; opts.cssBefore.height = 0; opts.animOut.height = 0; }; $.fn.cycle.transitions.turnLeft = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,true); opts.cssBefore.left = next.cycleW; opts.animIn.width = next.cycleW; }); opts.cssBefore.top = 0; opts.cssBefore.width = 0; opts.animIn.left = 0; opts.animOut.width = 0; }; $.fn.cycle.transitions.turnRight = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,true); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); $.extend(opts.cssBefore, { top: 0, left: 0, width: 0 }); opts.animIn.left = 0; opts.animOut.width = 0; }; // zoom $.fn.cycle.transitions.zoom = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,false,true); opts.cssBefore.top = next.cycleH/2; opts.cssBefore.left = next.cycleW/2; $.extend(opts.animIn, { top: 0, left: 0, width: next.cycleW, height: next.cycleH }); $.extend(opts.animOut, { width: 0, height: 0, top: curr.cycleH/2, left: curr.cycleW/2 }); }); opts.cssFirst.top = 0; opts.cssFirst.left = 0; opts.cssBefore.width = 0; opts.cssBefore.height = 0; }; // fadeZoom $.fn.cycle.transitions.fadeZoom = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,false); opts.cssBefore.left = next.cycleW/2; opts.cssBefore.top = next.cycleH/2; $.extend(opts.animIn, { top: 0, left: 0, width: next.cycleW, height: next.cycleH }); }); opts.cssBefore.width = 0; opts.cssBefore.height = 0; opts.animOut.opacity = 0; }; // blindX $.fn.cycle.transitions.blindX = function($cont, $slides, opts) { var w = $cont.css('overflow','hidden').width(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts); opts.animIn.width = next.cycleW; opts.animOut.left = curr.cycleW; }); opts.cssBefore.left = w; opts.cssBefore.top = 0; opts.animIn.left = 0; opts.animOut.left = w; }; // blindY $.fn.cycle.transitions.blindY = function($cont, $slides, opts) { var h = $cont.css('overflow','hidden').height(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore.top = h; opts.cssBefore.left = 0; opts.animIn.top = 0; opts.animOut.top = h; }; // blindZ $.fn.cycle.transitions.blindZ = function($cont, $slides, opts) { var h = $cont.css('overflow','hidden').height(); var w = $cont.width(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts); opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH; }); opts.cssBefore.top = h; opts.cssBefore.left = w; opts.animIn.top = 0; opts.animIn.left = 0; opts.animOut.top = h; opts.animOut.left = w; }; // growX - grow horizontally from centered 0 width $.fn.cycle.transitions.growX = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,true); opts.cssBefore.left = this.cycleW/2; opts.animIn.left = 0; opts.animIn.width = this.cycleW; opts.animOut.left = 0; }); opts.cssBefore.top = 0; opts.cssBefore.width = 0; }; // growY - grow vertically from centered 0 height $.fn.cycle.transitions.growY = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,false); opts.cssBefore.top = this.cycleH/2; opts.animIn.top = 0; opts.animIn.height = this.cycleH; opts.animOut.top = 0; }); opts.cssBefore.height = 0; opts.cssBefore.left = 0; }; // curtainX - squeeze in both edges horizontally $.fn.cycle.transitions.curtainX = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,false,true,true); opts.cssBefore.left = next.cycleW/2; opts.animIn.left = 0; opts.animIn.width = this.cycleW; opts.animOut.left = curr.cycleW/2; opts.animOut.width = 0; }); opts.cssBefore.top = 0; opts.cssBefore.width = 0; }; // curtainY - squeeze in both edges vertically $.fn.cycle.transitions.curtainY = function($cont, $slides, opts) { opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,false,true); opts.cssBefore.top = next.cycleH/2; opts.animIn.top = 0; opts.animIn.height = next.cycleH; opts.animOut.top = curr.cycleH/2; opts.animOut.height = 0; }); opts.cssBefore.height = 0; opts.cssBefore.left = 0; }; // cover - curr slide covered by next slide $.fn.cycle.transitions.cover = function($cont, $slides, opts) { var d = opts.direction || 'left'; var w = $cont.css('overflow','hidden').width(); var h = $cont.height(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts); opts.cssAfter.display = ''; if (d == 'right') opts.cssBefore.left = -w; else if (d == 'up') opts.cssBefore.top = h; else if (d == 'down') opts.cssBefore.top = -h; else opts.cssBefore.left = w; }); opts.animIn.left = 0; opts.animIn.top = 0; opts.cssBefore.top = 0; opts.cssBefore.left = 0; }; // uncover - curr slide moves off next slide $.fn.cycle.transitions.uncover = function($cont, $slides, opts) { var d = opts.direction || 'left'; var w = $cont.css('overflow','hidden').width(); var h = $cont.height(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,true,true); if (d == 'right') opts.animOut.left = w; else if (d == 'up') opts.animOut.top = -h; else if (d == 'down') opts.animOut.top = h; else opts.animOut.left = -w; }); opts.animIn.left = 0; opts.animIn.top = 0; opts.cssBefore.top = 0; opts.cssBefore.left = 0; }; // toss - move top slide and fade away $.fn.cycle.transitions.toss = function($cont, $slides, opts) { var w = $cont.css('overflow','visible').width(); var h = $cont.height(); opts.before.push(function(curr, next, opts) { $.fn.cycle.commonReset(curr,next,opts,true,true,true); // provide default toss settings if animOut not provided if (!opts.animOut.left && !opts.animOut.top) $.extend(opts.animOut, { left: w*2, top: -h/2, opacity: 0 }); else opts.animOut.opacity = 0; }); opts.cssBefore.left = 0; opts.cssBefore.top = 0; opts.animIn.left = 0; }; // wipe - clip animation $.fn.cycle.transitions.wipe = function($cont, $slides, opts) { var w = $cont.css('overflow','hidden').width(); var h = $cont.height(); opts.cssBefore = opts.cssBefore || {}; var clip; if (opts.clip) { if (/l2r/.test(opts.clip)) clip = 'rect(0px 0px '+h+'px 0px)'; else if (/r2l/.test(opts.clip)) clip = 'rect(0px '+w+'px '+h+'px '+w+'px)'; else if (/t2b/.test(opts.clip)) clip = 'rect(0px '+w+'px 0px 0px)'; else if (/b2t/.test(opts.clip)) clip = 'rect('+h+'px '+w+'px '+h+'px 0px)'; else if (/zoom/.test(opts.clip)) { var top = parseInt(h/2,10); var left = parseInt(w/2,10); clip = 'rect('+top+'px '+left+'px '+top+'px '+left+'px)'; } } opts.cssBefore.clip = opts.cssBefore.clip || clip || 'rect(0px 0px 0px 0px)'; var d = opts.cssBefore.clip.match(/(\d+)/g); var t = parseInt(d[0],10), r = parseInt(d[1],10), b = parseInt(d[2],10), l = parseInt(d[3],10); opts.before.push(function(curr, next, opts) { if (curr == next) return; var $curr = $(curr), $next = $(next); $.fn.cycle.commonReset(curr,next,opts,true,true,false); opts.cssAfter.display = 'block'; var step = 1, count = parseInt((opts.speedIn / 13),10) - 1; (function f() { var tt = t ? t - parseInt(step * (t/count),10) : 0; var ll = l ? l - parseInt(step * (l/count),10) : 0; var bb = b < h ? b + parseInt(step * ((h-b)/count || 1),10) : h; var rr = r < w ? r + parseInt(step * ((w-r)/count || 1),10) : w; $next.css({ clip: 'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)' }); (step++ <= count) ? setTimeout(f, 13) : $curr.css('display', 'none'); })(); }); $.extend(opts.cssBefore, { display: 'block', opacity: 1, top: 0, left: 0 }); opts.animIn = { left: 0 }; opts.animOut = { left: 0 }; }; })(jQuery);
0x6a
trunk/libraries/cycle/jquery.cycle.all.js
JavaScript
asf20
51,734
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/cycle/index.html
HTML
asf20
1,319
/* * File: jquery.loadJSON.js * Version: 1.2.5. * Author: Jovan Popovic * * Copyright 2011 Jovan Popovic, all rights reserved. * * This source file is free software, under either the GPL v2 license or a * BSD style license, as supplied with this software. * * This source file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. * * This file contains implementation of the JQuery templating engine that load JSON * objects into the HTML code. It is based on Alexandre Caprais notemplate plugin * with several enchancements that are added to this plugin. */ (function ($) { $.fn.loadJSON = function (obj, options) { function refreshMobileSelect(element) { try { if ($.isFunction($(element).selectmenu)) $(element).selectmenu('refresh'); //used in the JQuery mobile } catch (ex) { try { //$(element).selectmenu();//This will create duplicate select menu!!!!! //$(element).selectmenu('refresh'); } catch (ex) { } } } function refreshMobileCheckBox(element) { try { if ($.isFunction($(element).checkboxradio)) $(element).checkboxradio('refresh'); //used in the JQuery mobile } catch (ex) { } } function loadSelect(element, aoValues, name) { ///<summary> ///Load options into the select list ///</summary> ///<param name="element" type="JQuery:select">Select list</param> ///<param name="aoValues" type="Array{value,text,selected}">Array of object containin the options</param> ///<param name="name" type="String">Name of the select list</param> var arr = jQuery.makeArray(element); var template = $(arr[arr.length - 1]).clone(true); //how many duplicate var nbToCreate = obj.length; var i = 0; //fill started by last i = obj.length - 1; var iCreate = 0; for (iCreate = 0; iCreate < nbToCreate; iCreate++) { //duplicate the last var last = template.clone(true).insertAfter(arr[arr.length - 1]); //setElementValue(last, obj[i], name); $(last).attr("value", obj[i].value); $(last).text(obj[i].text); if (obj[i].selected) $(last).attr("selected", true); i--; } /////////////////////////////////////////////////////////////////////////////////////////// refreshMobileSelect(element) ////////////////////////////////////////////////////////////////////////////////////////// } function setElementValue(element, value, name) { var type = element.type || element.tagName; if (type == null) { type = element[0].type || element[0].tagName; //select returns undefined if called directly if (type == null) { return; } } type = type.toLowerCase(); switch (type) { case 'radio': if (value.toString().toLowerCase() == element.value.toLowerCase()) { $(element).attr("checked", "checked"); refreshMobileCheckBox(element); } break; case 'checkbox': if (value) { //$(element).attr("checked", "checked"); $(element).attr("checked", true); refreshMobileCheckBox(element); } break; case 'option': //$(element).attr("value", value.value); $(element).text(value.text); if (value.selected) $(element).attr("selected", true); break; case 'select-multiple': //This is "interesting". In mobile use element.options while in the desktop use element[0].options var select = element[0]; if (element[0].options == null || typeof (element[0].options) == "undefined") { select = element; } if (select.options.length > 1) { //If select list is not empty use values array to select optionses var values = value.constructor == Array ? value : [value]; //replaced element with element[0] ???? because now it reports that element.optons does not exists for (var i = 0; i < select.options.length; i++) { for (var j = 0; j < values.length; j++) { select.options[i].selected |= select.options[i].value == values[j]; } } refreshMobileSelect(element); } else { //ELSE: Instead of selecting values use values array to populate select list loadSelect(element, value, name); } break; case 'select': case 'select-one': if (typeof value == "string") { //$(element).attr("value", value); $(element).val(value); //refreshMobileSelect(element); }else { //loadSelect(element, value, name); } break; case 'text': case 'hidden': //$(element).attr("value", value); $(element).val(value); break; // case 'a': // var href = $(element).attr("href"); // // // // var iPosition = href.indexOf('#'); // if (iPosition > 1000000) { // href = href.substr(0, iPosition) + '&' + name + '=' + value + href.substr(iPosition) // // } else { // iPosition = href.indexOf('?'); // if (iPosition > 0) // if parameters in the URL exists add new pair using & // href += '&' + name + '=' + value; // else//otherwise attach pair to URL // href = href + '?' + name + '=' + value; // } // $(element).attr("href", href); // break; case 'img': if (obj.constructor == "String") { //Assumption is that value is in the HREF$ALT format var iPosition = value.indexOf('$'); var src = ""; var alt = ""; if (iPosition > 0) { src = value.substring(0, iPosition); alt = value.substring(iPosition + 1); } else { src = value; var iPositionStart = value.lastIndexOf('/') + 1; var iPositionEnd = value.indexOf('.'); alt = value.substring(iPositionStart, iPositionEnd); } $(element).attr("src", src); $(element).attr("alt", alt); } else { $(element).attr("src", obj.src); $(element).attr("alt", obj.alt); $(element).attr("title", obj.title); } break; case 'textarea': //case 'submit': //case 'button': default: try { //$(element).html(value.toString()); } catch (exc) { } } } function browseJSON(obj, element, name) { // no object if (obj == undefined) { } // branch else if (obj.constructor == Object) { if (element.length >= 1 && element[0].tagName == "OPTION") { setElementValue(element[0], obj, name); //return; } for (var prop in obj) { if (prop == null || typeof prop == "undefined") continue; else { //Find an element with class, id, name, or rel attribute that matches the propertu name var child = jQuery.makeArray(jQuery("." + prop, element)).length > 0 ? jQuery("." + prop, element) : jQuery("#" + prop, element).length > 0 ? jQuery("#" + prop, element) : jQuery('[name="' + prop + '"]', element).length > 0 ? jQuery('[name="' + prop + '"]', element) : jQuery('[rel="' + prop + '"]'); if (child.length != 0) { browseJSON(obj[prop], jQuery(child, element), prop); } } } } // array /*ELSE*/else if (obj.constructor == Array) { if (element.length == 1 && (element.type == "select" || element.type == "select-one" || element.type == "select-multiple" || element[0].type == "select" || element[0].type == "select-one" || element[0].type == "select-multiple" )) { //setElementValue(element[0], obj, name); ///nova dva reda setElementValue(element, obj, name); return; /////////////////////////////////////////////////////////////////////////////////////////// //if ($.isFunction($(element[0]).selectmenu)) // $(element[0]).selectmenu('refresh', true); //used in the JQuery mobile /////////////////////////////////////////////////////////////////////////////////////////// } else { var arrayElements = $(element).children("[rel]"); if (arrayElements.length > 0) {//if there are rel=[index] elements populate them instead of iteration arrayElements.each(function () { var rel = $(this).attr("rel"); //setElementValue(this, obj[rel], name); browseJSON(obj[rel], $(this), name); }); } else {//recursive iteration var arr = jQuery.makeArray(element); var template = $(arr[arr.length - 1]).clone(true); //how many duplicate var nbToCreate = obj.length; var i = 0; if (element[0] == null || (element[0] != null && element[0].tagName != "OPTION")) { var iExist = 0; for (iExist = 0; iExist < arr.length; iExist++) { if (i < obj.length) { var elem = $(element).eq(iExist); browseJSON(obj[i], elem, name); } i++; } var nbToCreate = obj.length - arr.length; ; } //fill started by last i = obj.length - 1; var iCreate = 0; for (iCreate = 0; iCreate < nbToCreate; iCreate++) { //duplicate the last var last = template.clone(true).insertAfter(arr[arr.length - 1]); browseJSON(obj[i], last, name); i--; } /////////////////////////////////////////////////////////////////////////////////////////// //if ($.isFunction($(element).selectmenu)) // $(element).selectmenu('refresh', true); //used in the JQuery mobile ////////////////////////////////////////////////////////////////////////////////////////// } } } // data only else { var value = obj; var type; if (element.length > 0) { var i = 0; for (i = 0; i < element.length; i++) setElementValue(element[i], obj, name); } else { setElementValue(element, obj, name); } } } //function browseJSON end function init(placeholder) { if (placeholder.data("loadJSON-template") != null && placeholder.data("loadJSON-template") != "") { var template = placeholder.data("loadJSON-template"); placeholder.html(template); } else { var template = placeholder.html() placeholder.data("loadJSON-template", template); } } var defaults = { onLoading: function () { }, onLoaded: function () { }, mobile: false }; properties = $.extend(defaults, options); return this.each(function () { if (obj.constructor == String) { if (obj.charAt(0) == '{' || obj.charAt(0) == '[') { var data = $.parseJSON(obj); init($(this)); properties.onLoading(); browseJSON(data, this); properties.onLoaded(); } else { var element = $(this); $.ajax({ url: obj, success: function (data) { element.loadJSON(data, properties); }, cache: false, dataType: "json" }); } } else { init($(this)); properties.onLoading(); browseJSON(obj, this); properties.onLoaded(); } }); }; })(jQuery);
0x6a
trunk/libraries/script/jquery.loadJSON.js
JavaScript
asf20
15,432
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ function a(){alert("a")}
0x6a
trunk/libraries/script/mcontent.jquery.js
JavaScript
asf20
250
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ function _goto_tab(o){ var index=$(o).data("tabIndex"); $(".tab",$(o).parents(".etabs")[0]).hide(); $(".tab.t-"+index,$(o).parents(".etabs")[0]).show(); $(o).parent().find('li.hover').removeClass('hover'); $(o).addClass('hover'); } function _addtab(o){ var index=Math.floor(Math.random()*10000); if(!confirm("Add new tab?")) return; var i=Math.random() $(o).parents(".etabs") .find('li.hover') .removeClass('hover'); $(o).before('<li class="hover mceNonEditable" data-tab-index="'+index+'" data-mce-contenteditable="false" onclick="_goto_tab(this)">\ <span class="mceEditable" data-mce-contenteditable="true">newtab</span>\ </li>'); $(".tab",$(o).parents(".etabs")).hide(); $(o).parents(".etabs") .find('.tab-content') .append('<div class="tab mceNonEditable t-'+index+'" data-mce-contenteditable="false" style="display:block">\ <div data-mce-contenteditable="false" class="paragraph mceNoneEditable">\ <div data-mce-contenteditable="true" class="paragraph mceEditable">Tab content here...</div>\ <div>\ </div>'); }
0x6a
trunk/libraries/script/typography.jquery.1.1.9.js
JavaScript
asf20
1,319
/*! * jQuery Migrate - v1.2.1 - 2013-05-08 * https://github.com/jquery/jquery-migrate * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT */ (function( jQuery, window, undefined ) { // See http://bugs.jquery.com/ticket/13335 // "use strict"; var warnedAbout = {}; // List of warnings already given; public read only jQuery.migrateWarnings = []; // Set to true to prevent console output; migrateWarnings still maintained // jQuery.migrateMute = false; // Show a message on the console so devs know we're active if ( !jQuery.migrateMute && window.console && window.console.log ) { window.console.log("JQMIGRATE: Logging is active"); } // Set to false to disable traces that appear with warnings if ( jQuery.migrateTrace === undefined ) { jQuery.migrateTrace = true; } // Forget any warnings we've already given; public jQuery.migrateReset = function() { warnedAbout = {}; jQuery.migrateWarnings.length = 0; }; function migrateWarn( msg) { var console = window.console; if ( !warnedAbout[ msg ] ) { warnedAbout[ msg ] = true; jQuery.migrateWarnings.push( msg ); if ( console && console.warn && !jQuery.migrateMute ) { console.warn( "JQMIGRATE: " + msg ); if ( jQuery.migrateTrace && console.trace ) { console.trace(); } } } } function migrateWarnProp( obj, prop, value, msg ) { if ( Object.defineProperty ) { // On ES5 browsers (non-oldIE), warn if the code tries to get prop; // allow property to be overwritten in case some other plugin wants it try { Object.defineProperty( obj, prop, { configurable: true, enumerable: true, get: function() { migrateWarn( msg ); return value; }, set: function( newValue ) { migrateWarn( msg ); value = newValue; } }); return; } catch( err ) { // IE8 is a dope about Object.defineProperty, can't warn there } } // Non-ES5 (or broken) browser; just set the property jQuery._definePropertyBroken = true; obj[ prop ] = value; } if ( document.compatMode === "BackCompat" ) { // jQuery has never supported or tested Quirks Mode migrateWarn( "jQuery is not compatible with Quirks Mode" ); } var attrFn = jQuery( "<input/>", { size: 1 } ).attr("size") && jQuery.attrFn, oldAttr = jQuery.attr, valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get || function() { return null; }, valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set || function() { return undefined; }, rnoType = /^(?:input|button)$/i, rnoAttrNodeType = /^[238]$/, rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, ruseDefault = /^(?:checked|selected)$/i; // jQuery.attrFn migrateWarnProp( jQuery, "attrFn", attrFn || {}, "jQuery.attrFn is deprecated" ); jQuery.attr = function( elem, name, value, pass ) { var lowerName = name.toLowerCase(), nType = elem && elem.nodeType; if ( pass ) { // Since pass is used internally, we only warn for new jQuery // versions where there isn't a pass arg in the formal params if ( oldAttr.length < 4 ) { migrateWarn("jQuery.fn.attr( props, pass ) is deprecated"); } if ( elem && !rnoAttrNodeType.test( nType ) && (attrFn ? name in attrFn : jQuery.isFunction(jQuery.fn[name])) ) { return jQuery( elem )[ name ]( value ); } } // Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking // for disconnected elements we don't warn on $( "<button>", { type: "button" } ). if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) { migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8"); } // Restore boolHook for boolean property/attribute synchronization if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) { jQuery.attrHooks[ lowerName ] = { get: function( elem, name ) { // Align boolean attributes with corresponding properties // Fall back to attribute presence where some booleans are not supported var attrNode, property = jQuery.prop( elem, name ); return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ? name.toLowerCase() : undefined; }, set: function( elem, value, name ) { var propName; if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { // value is true since we know at this point it's type boolean and not false // Set boolean attributes to the same name and set the DOM property propName = jQuery.propFix[ name ] || name; if ( propName in elem ) { // Only set the IDL specifically if it already exists on the element elem[ propName ] = true; } elem.setAttribute( name, name.toLowerCase() ); } return name; } }; // Warn only for attributes that can remain distinct from their properties post-1.9 if ( ruseDefault.test( lowerName ) ) { migrateWarn( "jQuery.fn.attr('" + lowerName + "') may use property instead of attribute" ); } } return oldAttr.call( jQuery, elem, name, value ); }; // attrHooks: value jQuery.attrHooks.value = { get: function( elem, name ) { var nodeName = ( elem.nodeName || "" ).toLowerCase(); if ( nodeName === "button" ) { return valueAttrGet.apply( this, arguments ); } if ( nodeName !== "input" && nodeName !== "option" ) { migrateWarn("jQuery.fn.attr('value') no longer gets properties"); } return name in elem ? elem.value : null; }, set: function( elem, value ) { var nodeName = ( elem.nodeName || "" ).toLowerCase(); if ( nodeName === "button" ) { return valueAttrSet.apply( this, arguments ); } if ( nodeName !== "input" && nodeName !== "option" ) { migrateWarn("jQuery.fn.attr('value', val) no longer sets properties"); } // Does not return so that setAttribute is also used elem.value = value; } }; var matched, browser, oldInit = jQuery.fn.init, oldParseJSON = jQuery.parseJSON, // Note: XSS check is done below after string is trimmed rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/; // $(html) "looks like html" rule change jQuery.fn.init = function( selector, context, rootjQuery ) { var match; if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) && (match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) { // This is an HTML string according to the "old" rules; is it still? if ( selector.charAt( 0 ) !== "<" ) { migrateWarn("$(html) HTML strings must start with '<' character"); } if ( match[ 3 ] ) { migrateWarn("$(html) HTML text after last tag is ignored"); } // Consistently reject any HTML-like string starting with a hash (#9521) // Note that this may break jQuery 1.6.x code that otherwise would work. if ( match[ 0 ].charAt( 0 ) === "#" ) { migrateWarn("HTML string cannot start with a '#' character"); jQuery.error("JQMIGRATE: Invalid selector string (XSS)"); } // Now process using loose rules; let pre-1.8 play too if ( context && context.context ) { // jQuery object as context; parseHTML expects a DOM object context = context.context; } if ( jQuery.parseHTML ) { return oldInit.call( this, jQuery.parseHTML( match[ 2 ], context, true ), context, rootjQuery ); } } return oldInit.apply( this, arguments ); }; jQuery.fn.init.prototype = jQuery.fn; // Let $.parseJSON(falsy_value) return null jQuery.parseJSON = function( json ) { if ( !json && json !== null ) { migrateWarn("jQuery.parseJSON requires a valid JSON string"); return null; } return oldParseJSON.apply( this, arguments ); }; jQuery.uaMatch = function( ua ) { ua = ua.toLowerCase(); var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || /(webkit)[ \/]([\w.]+)/.exec( ua ) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || /(msie) ([\w.]+)/.exec( ua ) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || []; return { browser: match[ 1 ] || "", version: match[ 2 ] || "0" }; }; // Don't clobber any existing jQuery.browser in case it's different if ( !jQuery.browser ) { matched = jQuery.uaMatch( navigator.userAgent ); browser = {}; if ( matched.browser ) { browser[ matched.browser ] = true; browser.version = matched.version; } // Chrome is Webkit, but Webkit is also Safari. if ( browser.chrome ) { browser.webkit = true; } else if ( browser.webkit ) { browser.safari = true; } jQuery.browser = browser; } // Warn if the code tries to get jQuery.browser migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" ); jQuery.sub = function() { function jQuerySub( selector, context ) { return new jQuerySub.fn.init( selector, context ); } jQuery.extend( true, jQuerySub, this ); jQuerySub.superclass = this; jQuerySub.fn = jQuerySub.prototype = this(); jQuerySub.fn.constructor = jQuerySub; jQuerySub.sub = this.sub; jQuerySub.fn.init = function init( selector, context ) { if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { context = jQuerySub( context ); } return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); }; jQuerySub.fn.init.prototype = jQuerySub.fn; var rootjQuerySub = jQuerySub(document); migrateWarn( "jQuery.sub() is deprecated" ); return jQuerySub; }; // Ensure that $.ajax gets the new parseJSON defined in core.js jQuery.ajaxSetup({ converters: { "text json": jQuery.parseJSON } }); var oldFnData = jQuery.fn.data; jQuery.fn.data = function( name ) { var ret, evt, elem = this[0]; // Handles 1.7 which has this behavior and 1.8 which doesn't if ( elem && name === "events" && arguments.length === 1 ) { ret = jQuery.data( elem, name ); evt = jQuery._data( elem, name ); if ( ( ret === undefined || ret === evt ) && evt !== undefined ) { migrateWarn("Use of jQuery.fn.data('events') is deprecated"); return evt; } } return oldFnData.apply( this, arguments ); }; var rscriptType = /\/(java|ecma)script/i, oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack; jQuery.fn.andSelf = function() { migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"); return oldSelf.apply( this, arguments ); }; // Since jQuery.clean is used internally on older versions, we only shim if it's missing if ( !jQuery.clean ) { jQuery.clean = function( elems, context, fragment, scripts ) { // Set context per 1.8 logic context = context || document; context = !context.nodeType && context[0] || context; context = context.ownerDocument || context; migrateWarn("jQuery.clean() is deprecated"); var i, elem, handleScript, jsTags, ret = []; jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes ); // Complex logic lifted directly from jQuery 1.8 if ( fragment ) { // Special handling of each script element handleScript = function( elem ) { // Check if we consider it executable if ( !elem.type || rscriptType.test( elem.type ) ) { // Detach the script and store it in the scripts array (if provided) or the fragment // Return truthy to indicate that it has been handled return scripts ? scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) : fragment.appendChild( elem ); } }; for ( i = 0; (elem = ret[i]) != null; i++ ) { // Check if we're done after handling an executable script if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) { // Append to fragment and handle embedded scripts fragment.appendChild( elem ); if ( typeof elem.getElementsByTagName !== "undefined" ) { // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript ); // Splice the scripts into ret after their former ancestor and advance our index beyond them ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) ); i += jsTags.length; } } } } return ret; }; } var eventAdd = jQuery.event.add, eventRemove = jQuery.event.remove, eventTrigger = jQuery.event.trigger, oldToggle = jQuery.fn.toggle, oldLive = jQuery.fn.live, oldDie = jQuery.fn.die, ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess", rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ), rhoverHack = /(?:^|\s)hover(\.\S+|)\b/, hoverHack = function( events ) { if ( typeof( events ) !== "string" || jQuery.event.special.hover ) { return events; } if ( rhoverHack.test( events ) ) { migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"); } return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" ); }; // Event props removed in 1.9, put them back if needed; no practical way to warn them if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) { jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" ); } // Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7 if ( jQuery.event.dispatch ) { migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" ); } // Support for 'hover' pseudo-event and ajax event warnings jQuery.event.add = function( elem, types, handler, data, selector ){ if ( elem !== document && rajaxEvent.test( types ) ) { migrateWarn( "AJAX events should be attached to document: " + types ); } eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector ); }; jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){ eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes ); }; jQuery.fn.error = function() { var args = Array.prototype.slice.call( arguments, 0); migrateWarn("jQuery.fn.error() is deprecated"); args.splice( 0, 0, "error" ); if ( arguments.length ) { return this.bind.apply( this, args ); } // error event should not bubble to window, although it does pre-1.7 this.triggerHandler.apply( this, args ); return this; }; jQuery.fn.toggle = function( fn, fn2 ) { // Don't mess with animation or css toggles if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) { return oldToggle.apply( this, arguments ); } migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated"); // Save reference to arguments for access in closure var args = arguments, guid = fn.guid || jQuery.guid++, i = 0, toggler = function( event ) { // Figure out which function to execute var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i; jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 ); // Make sure that clicks stop event.preventDefault(); // and execute the function return args[ lastToggle ].apply( this, arguments ) || false; }; // link all the functions, so any of them can unbind this click handler toggler.guid = guid; while ( i < args.length ) { args[ i++ ].guid = guid; } return this.click( toggler ); }; jQuery.fn.live = function( types, data, fn ) { migrateWarn("jQuery.fn.live() is deprecated"); if ( oldLive ) { return oldLive.apply( this, arguments ); } jQuery( this.context ).on( types, this.selector, data, fn ); return this; }; jQuery.fn.die = function( types, fn ) { migrateWarn("jQuery.fn.die() is deprecated"); if ( oldDie ) { return oldDie.apply( this, arguments ); } jQuery( this.context ).off( types, this.selector || "**", fn ); return this; }; // Turn global events into document-triggered events jQuery.event.trigger = function( event, data, elem, onlyHandlers ){ if ( !elem && !rajaxEvent.test( event ) ) { migrateWarn( "Global events are undocumented and deprecated" ); } return eventTrigger.call( this, event, data, elem || document, onlyHandlers ); }; jQuery.each( ajaxEvents.split("|"), function( _, name ) { jQuery.event.special[ name ] = { setup: function() { var elem = this; // The document needs no shimming; must be !== for oldIE if ( elem !== document ) { jQuery.event.add( document, name + "." + jQuery.guid, function() { jQuery.event.trigger( name, null, elem, true ); }); jQuery._data( this, name, jQuery.guid++ ); } return false; }, teardown: function() { if ( this !== document ) { jQuery.event.remove( document, name + "." + jQuery._data( this, name ) ); } return false; } }; } ); })( jQuery, window );
0x6a
trunk/libraries/script/jquery-migrate-1.2.1.js
JavaScript
asf20
17,142
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/script/index.html
HTML
asf20
1,319
<link type="text/css" rel="stylesheet" href="../../../libraries/typography/typography.css"/> <div class="tabs my-content"> <ul class="tab-nav"> <li class="hover" onclick="_goto_tab(this)"> <span>Tab 1</span> </li> <li class="newtab mceNonEditable" onclick="_addtab(this)"> <span>&nbsp;+&nbsp;</span> </li> </ul> <div class="tab-content" style="border-top: 1px solid #bca887;"> <div class="tab"> <blockquote class="style1"> <p> <span class="step">1</span>Ut nonummy habent soluta claritas veniam. <br/> Typi nunc soluta hendrerit mutationem sollemnes. <br/> Quis lius dolore et insitam vel. </p> <blockquote class="style1"> <p> Sub block quote </p> </blockquote> <p> <span class="step">2</span>Aliquip consequat futurum claram ut mazim. <br/> Facilisi accumsan dolore ii imperdiet consequat. <br/> Claritatem aliquip quod putamus vulputate iusto. <br/> Doming minim typi zzril lius usus. <br/> In clari mutationem autem non sit. <br/> Qui augue mirum dynamicus gothica ut. <br/> Demonstraverunt processus soluta sequitur autem demonstraverunt. </p> </blockquote> </div> </div> </div>
0x6a
trunk/libraries/tiny_mce/templates/tabs.html
HTML
asf20
1,591
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/tiny_mce/index.html
HTML
asf20
1,319
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ var Categories=(function(){ var init=false; var datafields=[ { name : 'cate_id' ,type : 'int'}, { name : 'cate_type' }, { name : 'cate_title' }, { name : 'cate_display_title' }, { name : 'cate_alias' }, { name : 'cate_parent_title' }, { name : 'cate_position',type : 'int' }, { name : 'cate_link' }, { name : 'cate_thumb' }, { name : 'cate_status', type : 'bool' }, { name : 'cate_insert' }, { name : 'cate_update' }, { name : 'cate_value' }, { name : 'cate_target' }, { name : 'cate_desc' } ], columns=[ { text: 'Id' , dataField: 'cate_id' ,width:60,filterable:false ,sortable: false, cellsrenderer : function (row, column, value) { var str="<span style='margin: 4px; float: left;'>"; if(value && value>0){ try{ //value = $.parseJSON(value); str+="\ <div onclick=\"Categories.EditItem('"+value+"');\" \ class='w-16 h-16 f-l m-r-4 c-s-p hover-50 edit-icon' title='Edit'></div>\ "; str+="\ <div onclick=\"Categories.DeleteItem('"+value+"');\" \ class='w-16 h-16 f-l m-r-4 c-s-p hover-50 del-icon' title='Delete'></div>\ "; }catch(e){ErrorMsg(e.message);} } str+="</span>"; return str; } }, { text: 'Thumb' , dataField: 'cate_thumb' ,width:60,filterable:false ,sortable: false, cellsrenderer : function (row, datafield, value) { if(value==undefined || value=='') return '<img class="m-0-a d-p-b p-t-2" height="22" src="'+base_url+'libraries/images/22/picture.png"/>'; else return '<img class="m-0-a d-p-b p-t-2" height="22" src="/data/thumbs/' + value + '"/>'; } }, { text: 'Title' , dataField: 'cate_display_title' ,filterable:false }, { text: 'Parent' , dataField: 'cate_parent_title' ,width:100,filterable:false }, { text: 'Position' , dataField: 'cate_position' ,width:80,filterable:false, cellsalign:'right',columntype:'numberinput',filtertype:'number'}, { text: 'Type' , dataField: 'cate_type' ,width:100,filterable:false ,sortable: false}, { text: 'Status' , dataField: 'cate_status' ,width:80,filterable:false ,columntype:'checkbox',threestatecheckbox:false,filtertype:'bool'}, { text: 'Insert' , dataField: 'cate_insert' ,width:120,filterable:false ,cellsformat:'yyyy-MM-dd HH:mm:ss'}, ], source,dataAdapter, grid_element='#jqxGrid_Backend_Categories'; return { OnInit:function(){ try{ NoticeMsg('beforeprocessing: function(data){ source.totalrecords = data.total_rows; }'); WarningMsg("<pre>filter : function(){ $(\"#jqxReportGrid\").jqxGrid('updatebounddata', 'filter'); },\ sort : function(){ $(\"#jqxReportGrid\").jqxGrid('updatebounddata'); },\ root : 'rows',\ beforeprocessing: function(data){ source.totalrecords = data.total_rows; }</pre>") if(init) return; init=true; //grid_element=$('#jqxGrid_Backend_Categories'); source ={ datatype: "json",type : "POST", datafields: datafields, id: 'cate_id', url: base_url+'backend/category/binding/news.html', filter : function(){ $(grid_element).jqxGrid('updatebounddata', 'filter'); }, sort : function(){ $(grid_element).jqxGrid('updatebounddata'); }, root : 'rows', beforeprocessing: function(data){ source.totalrecords = data.total_rows; } }; dataAdapter = new $.jqx.dataAdapter(source, { loadError: function(xhr, status, error){ ErrorMsg("<b>Status</b>:"+xhr.status+"<br/><b>ThrownError</b>:"+error+"<br/>"); } }); $(grid_element).jqxGrid({ rendergridrows: function(obj){ return obj.data; },ready: function () { Categories.Filter('cate_type','news'); }, width: '100%',//height:'100%', source: dataAdapter, theme: theme,sortable: true, //filterable: true, //autoshowfiltericon: true, //showfilterrow: true, showemptyrow: true, virtualmode:false, columns: columns }); }catch(e){ ErrorMsg(e.message); } }, AddItem:function(){ this.EditItem(0); }, EditItem:function(Id){ $('#category_edit_panel_popup').load(base_url+"backend/category/loadEditPanel/news",{Id:Id},function(){ $('#category_edit_panel_tabs').jqxTabs({ theme: 'metro', height: 'auto', scrollable: true, selectionTracker: true, animationType: 'fade' }); bckdialog({ message:$('#category_edit_panel_popup'), title:'Category edit panel' }).open(); $("#category_form_edit_panel").validationEngine(); }); //$("#category_edit_panel_popup") }, Save:function(){ }, Cancel:function(){ }, DeleteItem:function(id){ accessdenied(); }, RestoreItem:function(){ accessdenied(); }, Permission:function(id){ }, PrivateItem:function(){ accessdenied(); }, Setting:function(){ bckdialog({ message:$('#window-sOpt'), icon:"<img class='p-a t-7 l-8' src='"+base_url+"/libraries/images/16/option.gif'/>", title:'Setting' }).open(); }, Refresh:function(){ //$("#jqxGrid").jqxGrid('updatebounddata'); Msg('✔ Dép bông nhung mềm mịn - 68.000 | Bộ màu vẽ 68 món - 85.000 | Máy uốn tóc new - 135.000'); }, Filter:function(datafield,filtervalue){ var filtertype = 'stringfilter'; var filtergroup = new $.jqx.filter(); var filter_or_operator = 1; var filtercondition = 'equal'; var filter = filtergroup.createfilter(filtertype, filtervalue, filtercondition); filtergroup.addfilter(filter_or_operator, filter); //$(grid_element).jqxGrid('clearfilters'); // add the filters. $(grid_element).jqxGrid('addfilter', datafield, filtergroup); // apply the filters. $(grid_element).jqxGrid('applyfilters'); } }; }()); $(document).ready(function () { //Btree().Init(); });
0x6a
trunk/libraries/backend/backend.category.js
JavaScript
asf20
7,801
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ isrunning =false; function includejs(url){ try{ var headID = document.getElementsByTagName("head")[0]; var newScript = document.createElement('script'); newScript.type = 'text/javascript'; newScript.src = url; headID.appendChild(newScript); return; var _ui = document.createElement('script'); _ui.type = 'text/javascript'; _ui.src = url; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_ui, s); }catch(e){} } function includecss(url){ try{ var headID = document.getElementsByTagName("head")[0]; var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = url; cssNode.media = 'screen'; headID.appendChild(cssNode); return; var _ui = document.createElement('link'); _ui.rel = 'stylesheet'; _ui.type = 'text/javascript'; _ui.href = url; var s = document.getElementsByTagName('link')[0]; s.parentNode.insertBefore(_ui, s); }catch(e){} } function checkStrength(password){ //initial strength var strength = 0; //if the password length is less than 6, return message. if (password.length < 6)return 'Too short'; //length is ok, lets continue. //if length is 8 characters or more, increase strength value if (password.length >=6) strength += 1; //if password contains both lower and uppercase characters, increase strength value if (password.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) strength += 1; //if it has numbers and characters, increase strength value if (password.match(/([a-zA-Z])/) && password.match(/([0-9])/)) strength += 1 ; //if it has one special character, increase strength value if (password.match(/([!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1; //if it has two special characters, increase strength value if (password.match(/(.*[!,%,&,@,#,$,^,*,?,_,~].*[!,%,&,@,#,$,^,*,?,_,~])/)) strength += 1; //now we have calculated strength value, we can return messages //if value is less than 2 if ( strength ===1 ) return 'Weak'; else if (strength === 2 ) return 'Fair'; else if (strength === 3 ) return 'Good'; else if (strength === 4 ) return 'Strong'; else return 'Verry Strong'; } function backendloading(){$('#backendload').show()} function backendloaded(){$('#backendload').hide()} function ShowLoadding(){ $("#loaddingbar").show(); $("#loaddingbar div").stop(true).width(0).css({ bottom:1 }) .animate({ width:'30%' },500) .animate({ width:'50%' },1000) .animate({ width:'75%' },2000) .animate({ width:'95%' },5000); } function HideLoadding(){ $("#loaddingbar div").stop(true) .animate({ width:'100%' },1000,function(){ $("#loaddingbar").hide(); }); } function HideLoadding(){ $("#loaddingAjax .proccessbar").stop(true) .animate({ width:'100%', backgroundColor:"red" },500,function(){ $("#loaddingAjax").hide(); }); } function ErrorMsg(message){ //Msg(message,'Error !','0x08') Msg('<p style="color:red;border-bottom: 1px dotted #ccc;padding-bottom: 6px;">Error Message !!!</p><p>'+message+'</p>'); } function WarningMsg(message){ //Msg(message,'Warning !','0x12') Msg('<p style="color:orangered;border-bottom: 1px dotted #ccc;padding-bottom: 6px;">Warning Message !!</p><p>'+message+'</p>'); } function NoticeMsg(message){ //Msg(message) Msg('<p style="border-bottom: 1px dotted #ccc;padding-bottom: 6px;">Notice Message !!</p><p>'+message+'</p>'); } function Msg(message,title,type,timeout){ var msg,titcolor='border-bottom:1px solid #ccc;background-color:#efefef'; if($("#notications").length===0)$('body').append('<div id="notications"></div>'); if(title===undefined)title='Message'; if(type===undefined)type='0x00'; if(type!=='0x00'){ titcolor='color:#fff;'; msg = $('<div class="centerscreen grid_8 d-p-b m-t-4 d-'+type+'"><div class="p-r l-h-20 p-l-8 b-'+type+'" style="'+titcolor+'">'+title+'<span class="msgclose p-a t-2 r-2 w-16 h-16 l-h-16 c-s-p t-a-c t-d-n c-0xff h-c-0xff">×</span></div><div class="b-0xff t-a-j p-4 c-'+type+'">'+message+'</div></div>'); }else msg = $('<div class="notice-box m-t-4"><div>'+message+'</div><div onclick="destroy_parent(this)" class="c-s-p notice-box-close-btn"></div></div>') msg.appendTo("#notications").delay(1000) .animate({bottom:'0%',right:'0%',marginRight:0},2000,function(){ $(this).removeClass('centerscreen'); }); $('.msgclose',msg).click(function(){msg.remove();}); if(timeout!==undefined){ msg.delay(timeout) .animate({opacity:0},2000,function(){ $(this).remove(); }); } } function uiMessage(msg,title,type){ //NoticeMsg(msg);return; if($("#uiMessage").length===0){ $('body').append('\ <div id="uiMessage" onmouseover="stoptipui()" class="tranf-b-20 b-r-5 ui-corner-all d-p-n" style="position: fixed; left: 50%; top: 36px; padding: 8px;z-index: 99999;margin-left:-360px;">\ <div class="ui-dialog-content ui-widget-content p-8 o-v-f-h o-v-f-x-a f-z-11" style="min-width: 720px;" > \ </div>\ <div class="p-a t-8 r-8 w-16 h-16 c-s-p t-a-c a t-d-n" onclick="untipui()" style="">×</div>\ </div>\ '); } if($("#notications").length===0){ $('body').append('<div id="notications"></div>'); } if(title===undefined){ title='Message'; } $('<div class="centerscreen m-t-4 b-d-c-ccc b-g-c-w grid_8"><h4 class="p-4 b-d-b-c-ddd">'+title+'</h4><p class="p-4">'+msg+'</p></div>') .appendTo("#notications").delay(1000) .animate({bottom:'0%',right:'0%',marginRight:0},2000,function(){ $(this).removeClass('centerscreen'); }).delay(8000) .animate({opacity:0},2000,function(){ $(this).remove(); }); } function untipui(){ $("#uiMessage").stop().hide(); } function stoptipui(){ $("#uiMessage").stop().css({display:"block",opacity:1}); } function bckdialog(_option){ var me=this; this.option={ type : "notice",//notice,error,question,custom title : null, message : null, uidialog : $("#dialog-message"), icon : null, hideclose : false, autoOpen : false, minwidth : '320px', height : 'auto', dialogClass : '', proc_start : null, proc_end : null, onload : null, onclose : null, onopen : null, callback : null }; var option=this.option; if(_option){ //$.map(_option,function(value,key){ // option[key]=value; //}); $.each(_option,function(index,value){ option[index]=value; }); this.option=option; } if($("#bckdialog").length===0){ $('body').append('\ <span class="d-p-n">\ <div id="uiMessage" onmouseover="stoptipui()" class="tranf-b-20 b-r-5 ui-corner-all d-p-n" style="position: fixed; left: 50%; top: 36px; padding: 8px;z-index: 99999;margin-left:-360px;">\ <div class="ui-dialog-content ui-widget-content p-8 o-v-f-h o-v-f-x-a f-z-11" style="min-width: 720px;" > \ </div>\ <div class="p-a t-8 r-8 w-16 h-16 c-s-p t-a-c a t-d-n" onclick="untipui()" style="">×</div>\ </div>\ <div id="loadding-dialog" class="uidialog" title="Loadding...">Processing. Please, wait...</div>\ <div id="bckdialog" class="p-20" title="Notice Message !"></div>\ </span>\ '); } if(option.type==="notice"){ if(option.icon===null) option.icon="<img class='p-a t-7 l-8' src='"+base_url+"libraries/ui/themes/base/images/dialog_warning.png'/>"; option.title="<font class='p-l-20'>"+(option.title===null?"Notice Message !":option.title)+"</font>"; }else if(option.type==="error"){ if(option.icon===null) option.icon="<img class='p-a t-7 l-8' src='"+base_url+"libraries/ui/themes/base/images/dialog_error.png'/>"; option.title="<font class='p-l-20 erc'>"+(option.title===null?"Error Exception !":option.title)+"</font>"; } if(option.message===null || option.message ===undefined){ //$("#dialog-message").html("Message type must be String or HTML DOM Element !"); option.uidialog=$("#bckdialog"); }else if(typeof(option.message)==="object"){ option.uidialog=option.message; }else if(typeof(option.message)==="string"){ $("#bckdialog").html('<div class="p-20">'+option.message+'</div>'); option.uidialog=$("#bckdialog"); }else{ $("#bckdialog").html("Message type must be String or HTML DOM element !"); option.uidialog=$("#bckdialog"); } return { open:function(str){ if(str)$("#bckdialog").html('<div class="p-20">'+str+'</div>'); option.uidialog.dialog({ modal : true, //autoOpen : option.autoOpen, minwidth : option.minwidth, dialogClass :'b-s-d-32 pie '+option.dialogClass, resizable : false, width :'auto', title : option.icon + option.title, closeOnEscape : true, //hide : "explode", buttons : { }, open : function(event, ui) { if (option.onopen && typeof(option.onopen) === "function") { try{ option.onopen(); }catch(e){} } $(event.target).dialog('widget') .css({position: 'fixed'}) .position({my: 'center', at: 'center', of: window}); }, close : function(event, ui) { if (option.onclose && typeof(option.onclose) === "function") { try{ option.onclose(); }catch(e){} } }, create :function(){ if(option.hideclose===true){ $(this).closest(".ui-dialog") .find(".ui-dialog-titlebar-close") .hide(); } } }); }, close:function(){ option.uidialog.dialog('close'); } }; } function backend(_option){ var option={ url : null, data : null, datatype : "json", proc_start : null, proc_end : null, callback : null }; if(_option) $.each(_option,function(index,value){ option[index]=value; }); if(option.datatype.toUpperCase()==='JSON'){ option.data.ajaxtype='json'; } return { call:function(_url,_data,_callback){ if(isrunning===true)return; if(_url) option.url=_url; if(_data) option.data=_data; if(_callback) option.callback=_callback; if(typeof(option.proc_start)==='function')option.proc_start(); else{backendloading()} jQuery.ajax({ type:"POST", //cache:false, //timeout:10000, data:option.data, dataType:option.datatype, url:option.url, success: function (data_result){ isrunning=false; if(typeof(option.callback)==='function')option.callback(data_result); if(typeof(option.proc_end)==='function')option.proc_end(); else{backendloaded()} }, error: function (xhr, ajaxOptions, thrownError){ isrunning=false; if(typeof(option.proc_end)==='function')option.proc_end(); else{backendloaded()} ErrorMsg("Sorry. Your request could not be completed.<br/> Please check your input data and try again."); } }); } }; } function BrowseServer( elementid ) { if($(elementid).length===0)uiMessage("Input element is not exist."); try{ window.KCFinder = {}; window.KCFinder.callBack = function(url) { url=url.replace('/data/','') window.KCFinder = null; $(elementid).val(url); }; window.open( base_url+'libraries/kcfinder/browse.php?lang=vi', 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=0, width=700, height=500' ); }catch(e){ ErrorMsg(e.message); } } function addRedactorEditor(Element){ Element.redactor({ //air: true, //wym: true, buttons: ['html','formatting', '|', 'bold', 'italic', 'deleted', '|','unorderedlist','orderedlist','outdent','indent','alignment','|','video','link','|','fontcolor','backcolor'] , plugins: ['advanced'] }); } function addEditorContent(ElementID,height){ try{ tinyMCE.init({// <![CDATA[ // General options // document_base_url : "/", // relative_urls : true, // remove_script_host : true, language : 'en', mode : "exact", elements : ElementID, body_class : 'my-content', theme : "advanced", //skin : "o2k7", //skin_variant : "silver", //plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", plugins : "backend,safari,pagebreak,autolink,lists,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,media,paste,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras", noneditable_regexp: /\[\[[^\]]+\]\]/g, height :height?height:500, width : "100%", extended_valid_elements :'*[*]', relative_urls : false,inline_styles : true, // Theme options theme_advanced_buttons1 : "newdocument,undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent,|,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "forecolor,backcolor,styleprops,|,blockquote,link,unlink,|,hr,sub,sup,charmap,emotions,iespell,image,media,|,template,|,removeformat,visualaid,cleanup,help,code,fullscreen", theme_advanced_buttons3 : "tablecontrols,|,mysplitbutton", theme_advanced_buttons4 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, jquery_url : base_url + 'libraries/script/jquery-1.9.0.js', // Example content CSS (should be your site CSS) content_css : base_url + "libraries/typography/typography.css", // template_templates:[ // { // title : "Backend Tabs Editor", // src : base_url+"backend/template/tab.html", // description : "Backend Tabs Editor" // }, // { // title : "Win Tabs Editor", // src : base_url+"backend/template/wintab.html", // description : "Win Tabs Editor" // } // ], // Drop lists for link/image/media/template dialogs //template_external_list_url : "js/template_list.js", //external_link_list_url : "js/link_list.js", //external_image_list_url : "js/image_list.js", //media_external_list_url : "js/media_list.js", file_browser_callback: 'openKCFinder', setup :function(ed) { //ed.onInit.add(function(ed, evt) { // tinymce.ScriptLoader.add(tinyMCE.baseURL+"/../script/mcontent.jquery.js"); // tinymce.ScriptLoader.loadQueue(); //}); }// ]]> }); }catch(e){ ErrorMsg(e.message); } } function openKCFinder(field_name, url, type, win) { try{ tinyMCE.activeEditor.windowManager.open({ file: base_url + 'libraries/kcfinder/browse.php?opener=tinymce&type=' + type, title: 'KCFinder', width: 700, height: 500, resizable: "yes", inline: true, close_previous: "no", popup_css: false }, { window: win, input: field_name }); }catch(e){ ErrorMsg(e.message); } return false; } function proc_sart(elem){ $(".i-l-d",$(elem)) .addClass("b-g-c-w-50") .show(); } function proc_end(elem){ $(".i-l-d",$(elem)) .removeClass("b-g-c-w-50") .fadeOut(500); } function islc(opt){ try{ $(opt.element).multiselect({ multiple : opt.multi ? opt.multi : false, header : opt.header ? opt.header : opt.filter ? opt.filter : false, noneSelectedText: opt.title ? opt.title : (opt.multi?"Select an Option":"Select a Option"), selectedList : opt.num ? opt.num : 1, menuwidth : opt.menuwidth ? opt.menuwidth : null, minWidth : opt.minwidth ? opt.minwidth : 'auto',//$(opt.element).parent().width(), height : opt.height ? opt.height : 'auto', classes : opt.aclass ? opt.aclass : null, style : opt.style ? opt.style : null, biz : opt.biz ? opt.biz : null, beforeclose : function(){ try{ if($(this).hasClass("validate")){ if($(this).show().validationEngine('validate')){ $(this).multiselect("option",{classes:opt.multi?'_mul erb':null}); }else{ $(this).multiselect("option",{classes:opt.multi?'_mul':null}); } $(this).hide(); } }catch(e){ErrorMsg(e.message);} } }); if(opt.filter) $(opt.element).multiselectfilter(); }catch(e){ErrorMsg(e.message);} } function choosealbum(){ if($('#frm_backend_album').length===0){ $('body').append('<div id="frm_backend_album"><div id="frm_backend_album_box" class="grid_18 h-g-12 o-v-y-a"><p class="p-20">Loading...</p></div></div>'); } $('#frm_backend_album #frm_backend_album_box').load(base_url+'backend/plugin/choosealbum') var frmalbum=$('#frm_backend_album'); bckdialog({ title:'Backend Plugin - Album maker', message:frmalbum }).open(); } function BrowseServerCallBack(callback) { try{ window.KCFinder = {}; window.KCFinder.callBack = function(url) { url=url.replace(base_url+'0x4D/',''); window.KCFinder = null; callback(url); }; window.open( base_url + 'libraries/kcfinder/browse.php?lang=vi', 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=1, scrollbars=0, width=700, height=500' ); }catch(e){ ErrorMsg(e.message); } } function choosegalleria(){ alert('open album'); } function accessdenied(){ bckdialog({ title:'<font color="red">Access Denied</font>', icon:'<img class="p-a t-8 l-8 w-16 h-16" src="'+base_url+'libraries/images/16/denied.png">', message:'Access is denied.<br>This function to requires an administrative account.<br>Please check your authority, and try again.<br/><br/>\ <a class="t-d-n" href="'+base_url+'backend">&bull; Return home.</a><br/>\n\ <a class="t-d-n" href="'+base_url+'backend/auth/logout">&bull; Login with different user.</a><br/>' }).open(); } function backend_update(fun,table,prefix,_id,_data){ backend({ url : base_url+"backend/excution/update_backend/"+fun+"/"+table+"/"+prefix+"/"+_id, data : _data, callback : function(rsdata){ if(rsdata.result<0){ WarningMsg(rsdata.message); }else{ NoticeMsg(rsdata.message); } } }).call(); } function destroy_parent(elem){ $(elem).parent().remove(); } function AliasTo(from,element){ if($(from).val()==$(from+'_curent').val())return; var url=base_url+"backend/excution/getalias"; var data={text:$(from).val()}; var proc=new backend({ url:url,data:data, callback:function(rsdata){ if(rsdata.result===1){ $(element).val(rsdata.alias); $(from+'_curent').val($(from).val()); }else{ WarningMsg(rsdata.message); } } }).call(); } $(document).ready(function(){ if($("#bckdialog").length===0){ $('body').append('\ <span class="d-p-n">\ <div id="loadding-dialog" class="uidialog" title="Loadding...">Processing. Please, wait...</div>\ <div id="bckdialog" class="p-20" title="Notice Message !"></div>\ </span>\ '); } });
0x6a
trunk/libraries/backend/backend.jquery.1.1.9.js
JavaScript
asf20
22,454
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ var menu=(function(){ return{ AddItem:function(){ $('#gridview').hide(); $('#detail').show(); _detail(''); }, EditItem:function(type){ try{ //var cells = $("#jqxGrid").jqxGrid('getselectedcells'); var rowindex = $('#jqxGrid').jqxGrid('getselectedrowindex'); var _id=undefined,url,data,obj; if(rowindex>-1){ var _dataRow=$("#jqxGrid").jqxGrid('getrowdata', rowindex); _id=_dataRow._id===undefined?(_dataRow.ID===undefined?_dataRow.ProductID:_dataRow.ID):_dataRow._id; if(_id!==undefined){ if(_id !== $("#news_id").val()){ _detail(_id); }else{ $(".frmjqxgrid").hide(); $(".frmeditting").show(); $(".group-events.g").hide(); $(".group-events.e").show(); } }else{ uiMessage("Row ID is not defined."); } }else{ uiMessage("No row selected. Please select one or more rows."); } }catch(e){ uiMessage(e.message); } }, Save:function(){ tinyMCE.triggerSave(false,false); if( $('#news_frm').validationEngine('validate') === false)return; new backend({ url : base_url+"admincp/content/save", data : $('#news_frm').serialize(), callback : function(data){ if(data.result<0){ new bckdialog({type:'error'}).open(data.message); }else{ uiMessage(data.message); $('#gridview').show(); $('#detail').hide(); $(".group-events.e").hide(); $(".group-events.g").show(); $("#jqxGrid").jqxGrid('updatebounddata'); } console.log(data); } }).call(); }, Cancel:function(){ $('#gridview').show(); $('#detail').hide(); $(".group-events.e").hide(); $(".group-events.g").show(); }, DeleteItem:function(){ }, RestoreItem:function(){ }, PublicItem:function(){ }, PrivateItem:function(){ }, Setting:function(){ bckdialog({ message:$('#window-sOpt'), icon:"<img class='p-a t-7 l-8' src='/libraries/images/16/option.gif'/>", title:'Setting' }).open(); }, Refresh:function(){ $("#jqxGrid").jqxGrid('updatebounddata'); } }; }()); function handleEvents(){ try{ // $("#jqxGrid").bind('rowselect', function (event) { // var rowData=$("#jqxGrid").jqxGrid('getrowdata', event.args.rowindex); // var ID = rowData._id; // $("#detail").load(base_url + "admincp/permission/detail/"+ID); // console.log(rowData); // }); }catch(e){ tipMessage(e.message); } } $(document).ready(function () { });
0x6a
trunk/libraries/backend/backend.content.js
JavaScript
asf20
3,694
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/backend/index.html
HTML
asf20
1,319
/* Document : backend Created on : Jun 4, 2013, 9:27:46 AM Author : Truong Description: Purpose of the stylesheet follows. */ @import url('../css/grid.css'); @import url('../css/widgets.css'); @import url('../css/icon.css'); /*@import url('../icheck/skins/all.css?v=0.9.1');*/ @import url('../icheck/skins/square/blue.css?v=0.9.1'); /*@import url('../css/bubble.css');*/ @import url('../ui/themes/base/jquery.ui.all.css'); @import url('../jqwidgets/styles/jqx.base.css'); @import url('../jqwidgets/styles/jqx.classic.css'); @import url('../jqwidgets/styles/jqx.metro.css'); /*@import url('../ui-multiselect/jquery.multiselect.css');*/ /*@import url('../css/animate.min.css'); @import url('../css/animate.delay.css');*/
0x6a
trunk/libraries/backend/backend.css
CSS
asf20
751
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ function cust_reg(){ if( $('#cust_frm').validationEngine('validate') === false)return false; new backend({ url : "/excution/addcustomer", data : $('#cust_frm').serialize(), callback : function(data){ if(data.result<0){ $('#cust_frm_err').html(data.message); }else{ document.cust_frm.reset(); $('#cust_frm_err').html('Đăng ký thành công.'); login(); } console.log(data); } }).call(); return false; } function cust_login(){ if( $('#login_frm').validationEngine('validate') === false)return false; new backend({ url : "/excution/custlogin", data : $('#login_frm').serialize(), callback : function(data){ if(data.result<0){ $('#login_frm_err').html(data.message); }else{ document.login_frm.reset(); $('#login_frm_err').html('Đăng nhập thành công.'); window.location.reload(); } console.log(data); } }).call(); return false; } function reg(){ $('.jfk-bubble.regfrm').toggle(); $('.jfk-bubble.loginfrm').hide() } function login(){ $('.jfk-bubble.loginfrm').toggle(); $('.jfk-bubble.regfrm').hide() } $(document).ready(function(){ $('.services a div').hover(function(){ $(this).stop().animate({top:'-172px'},200); //$(this).css({'background-position-y:':'-172px'}); console.log('a'); },function(){ $(this).stop().animate({top:'0px'},200); }); $('#cust_frm').validationEngine(); $('#login_frm').validationEngine(); try{ $('.cycleSlider').cycle({ timeout: 3000 , pager: '#cycleNav', activePagerClass:'active', pagerAnchorBuilder: function(idx, slide) { return '<a href="#">'+idx+'</a>'; } }); }catch(e){} Galleria.configure({ transition: 'pulse', thumbCrop: 'width', imageCrop: false, carousel: false, show: false, easing: 'galleriaOut', fullscreenDoubleTap: false, trueFullscreen: false, imageMargin: 50 }); //Galleria.loadTheme('/libraries/galleria/themes/folio/galleria.folio.min.js'); //$('.fontend_album.classic_album').css({height:300,width:'100%'}); //Galleria.run('.fontend_album.classic_album'); //theme : classic, azur, folio, twelve //‘fade’ crossfade betweens images //‘flash’ fades into background color between images //‘pulse’ quickly removes the image into background color, then fades the next image //‘slide’ slides the images depending on image position //‘fadeslide’ fade between images and slide slightly at the same time });
0x6a
trunk/libraries/frontend/js/frontend.jquery.js
JavaScript
asf20
3,019
@font-face { font-family: MyriadPro; src: url("arialr.eot"); /* EOT for IE */ } @font-face { font-family: MyriadPro; src: url("arialr.ttf"); /* TTF for CSS3 */ } @font-face { font-family: commercb; src: url("commercb.eot"); /* EOT for IE */ } @font-face { font-family: commercb; src: url("commercb.ttf"); /* TTF for CSS3 */ } body{ padding:0;margin:0;font-family:arial;font-size: 12px;color:#484848; } a{text-decoration: none;color: #999;} a:hover{text-decoration: underline;color:#149ed9} .h-36{height:36px;}.p-b-6{padding-bottom:6px} .head{background-color:#fafafa;} .footer{ background-color: #149ed9;height: 44px;display: block; } .head .first{background:url('../images/head_first.png') repeat-x bottom left;} .hotline{background:url('../images/hotline.png') no-repeat left center;} .auth{background:url('../images/auth_icon.png') no-repeat left center;} .head .nav{position:absolute;top:30px;right:0;} .head .nav ul{list-style:none;display:block;margin:0;padding:0;height:68px;} .head .nav ul li {list-style:none;display:block;height:68px;float:left;padding:0 0 0 48px;} .head .nav ul li a{ border-top:32px solid #fafafa;border-bottom:4px solid #fafafa;display:block;line-height:32px;color:#149ed9;font-weight:bold;text-decoration:none; transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; } .head .nav ul li a:hover,.head .nav ul li a.active{border-color:#149ed9} .slider{} .banner{ height:48px; text-transform:uppercase;text-align:center;line-height:48px;font-size:20px;color:#fff;background-color:#149ed9; background-image: url('../images/banner.png');background-position: center;background-repeat: no-repeat;font-family:MyriadPro; } .services{ padding:52px 0;height:172px; /* background:url('../images/services.png') no-repeat left center;*/ } .services a{ -background-image:url('../images/service_all.png');background-repeat: no-repeat;width:212px;height:172px;position:absolute;display: block; overflow: hidden;text-indent: -1000px; transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; } .services a div{background-image:url('../images/service_all.png');background-repeat: no-repeat;width:212px;height:342px;position:absolute;display: block;} /*.services a:hover,.services a.active{background-image:url('../images/services_hover.png');}*/ .event1 {top:52px;left:0; background-position: 0 0;} .event2 {top:52px;left:249px; background-position: -249px 0;} .event3 {top:52px;right:249px; background-position: -498px 0;} .event4 {top:52px;right:0;background-position: top right;} .event1 div{background-position: 0 0;} .event2 div{background-position: -249px 0;} .event3 div{background-position: -498px 0;} .event4 div{background-position: top right;} .intro .title{ margin: 0;padding: 0px 0 12px 0;font-family: MyriadPro; background:url('../images/line.png') repeat-x left bottom; } .intro .title h2{ line-height: 20px;margin: 0;padding: 0;font-size: 15px;text-transform: uppercase;color: #149ed9; border-left: 6px solid #149ed9;font-weight: normal;padding-left: 16px; } .intro .title h2 span,.intro .title h2 a{font-size: 12px;text-transform: none;font-family:arial;} .intro ul.list{margin: 0;padding: 12px 0;list-style: none} .intro ul.list li{ margin: 0;padding: 0;padding-left: 24px;display: block;height: 28px; background:url('../images/list_icon.png') no-repeat left center; } .intro ul.list li a{ line-height: 28px;font-size: 13px;text-decoration: none;color: inherit; } .slider .nav{ position: absolute;bottom: 12px;left: 50%;margin-left: -200px;width: 400px;height: 14px;overflow: hidden;z-index: 100; } .slider .nav a{ width: 14px;height: 14px;text-indent: -1000px;display: inline-block;margin: 0 4px; background:url('../images/slider_nav.png') no-repeat top right;cursor: pointer } .slider .nav a.active{background-position: top left} .projects .list{padding: 20px 0;position: relative} .projects .left{ width: 300px;border-bottom: 3px solid #0e739e;background-color:#149ed9; height: 212px;display: block;position: absolute;top: 20px;left: 0; } .projects .center{ width: 300px;border-bottom: 3px solid #0e739e;background-color:#149ed9; height: 212px;display: block;position: absolute;top: 20px;left: 50%;margin-left: -150px; } .projects .right{ width: 300px;border-bottom: 3px solid #0e739e;background-color:#149ed9; height: 212px;display: block;position: absolute;top: 20px;right: 0; } .projects .left img{ width: 300px; height: 172px;margin:0;padding:0; } .projects h3{color: #fff;text-align: center;font-size: 13px;margin:0;padding:0;line-height:40px;} .foot-line{ padding: 60px 0; height: 20px;display: block; background:url('../images/foot_line.png') no-repeat left center; } .customer{width: 141px;height: 106px;display: block;float: left;padding-left: 16px;} .customer a{width: 141px;height: 106px;display: block;background: red;overflow: hidden;} .customer a img{width: 100%;} .service-banner,.product-banner{ height: 56px;background:url('../images/service_tit.png') repeat-x left center; } .service-banner .title{ padding-left: 40px;line-height: 56px;background:url('../images/service_icon.png') no-repeat left center; font-size: 18px;color: #666666;font-family:MyriadPro; } .product-banner .title{ padding-left: 40px;line-height: 56px;background:url('../images/projects_icon.png') no-repeat left center; font-size: 18px;color: #666666;font-family:MyriadPro; } .nav_bar{ /* padding-right: 12px;*/ } .nav_bar .title{ border-bottom: 3px solid #0e739e;height: 40px;line-height: 40px;font-size: 15px;color: #fff; background-color: #149ed9;font-family: MyriadPro;text-align: center; } .nav_bar ul{display: block;margin: 0;padding: 0;list-style: none;border: 1px solid #d7d7d7;border-top: none;padding: 20px;} .nav_bar ul li{ list-style: none;height: 44px;border-bottom: 1px solid #d7d7d7;padding-left: 24px; background:url('../images/row.png') no-repeat left center; transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out; } .nav_bar ul li:hover,.nav_bar ul li.active{background-image: url('../images/row_active.png');color:#149ed9;} .nav_bar ul li a{line-height: 44px;color:inherit} .back{background-color: #149ed9;font-family: MyriadPro;text-align: center;font-size: 15px;color: #fff; background:url('../images/back_icon.png') no-repeat 20px 0 #149ed9;height: 50px;line-height: 50px} .service .title{ border-bottom: 4px solid #0e739e;position: relative; height: 44px;line-height: 44px;font-size: 20px; color: #fff;font-weight: bold;text-decoration: none; background-color: #149ed9;font-family: commercb,Arial;padding-left: 40px; } .projects img{margin:0;padding:0} .projects a{margin:0;padding:0;display:block} .projects h4{ border-bottom: 3px solid #0e739e;position: relative;padding: 0;margin: 0; height: 40px;line-height: 40px;font-size: 13px;text-align: center; color: #fff;font-weight: bold;text-decoration: none; background-color: #149ed9;font-family:Arial; } ul.onium{ margin: 0;padding: 12px 0;border: 1px solid #ccc;margin-top: 20px; } ul.onium li{ height: auto;line-height: 32px;padding-left: 50px;color:#149ed9; background: url('../images/contact_list_icon.png') no-repeat 10px -10px #fff; } ul.onium li.ab{background-position:10px -102px} ul.onium li.ac{background-position:10px -162px} ul.onium li.ad{background-position:10px -132px} .input,input{padding: 0;margin: 0;border: 1px solid #ccc;outline: none;font-family:inherit;font-size:inherit;} .input,input[type='text'],input[type='password'],input[type='number'],input[type='search']{ -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; font-family: inherit; font-size: inherit; } form input{ height: 24px; padding: 1px 4px 2px 4px; } textarea.input{padding: 3px 8px 2px 8px;resize: vertical} .erb,.input[wd='error'],input[wd='error'],[wd='error']{border-color: #dd4b39} .erc{color: #dd4b39} .ersd{ -webkit-box-shadow: 0 0px 4px rgba(221,75,57,0.9); -moz-box-shadow: 0 0px 4px rgba(221,75,57,0.3); box-shadow: 0 0px 4px rgba(221,75,57,0.9); } .input:hover,input:hover,input:focus,.input:focus,textarea:hover{ border: 1px solid #A8D4FF; -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); } input.classic-input:focus,input:focus,.input:focus,textarea:focus{ border: 1px solid #4d90fe;outline: none; -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); } .b-t-c{ -webkit-box-shadow: none; box-shadow: none; background-color: #f5f5f5; background-image: -webkit-linear-gradient(top,#f5f5f5,#f1f1f1); background-image: linear-gradient(top,#f5f5f5,#f1f1f1); color: #444; border: 1px solid #d3d3d3; /* border: 1px solid rgba(0,0,0,0.1);*/ -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; cursor: default; text-align: center; white-space: nowrap; height: 24px; line-height: 24px; min-width: 52px; outline: 0; padding: 0 12px; display: inline-block; position: relative; cursor: pointer; } button.b-t-c,input.b-t-c{padding: 0 16px;height: 26px;line-height: 24px;} .b-t-c:hover{ border: 1px solid #A8D4FF; -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0 1px 1px rgba(0,0,0,.1); box-shadow: 0 1px 1px rgba(0,0,0,.1); } .b-t-c:active{ top:1px; }
0x6a
trunk/libraries/frontend/css/frontend.styles.css
CSS
asf20
10,100
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ .input,input[type='text'],input[type='password']{padding-top: 4px;}
0x6a
trunk/libraries/frontend/css/ie8.css
CSS
asf20
292
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ .clear {clear: both;display: block;overflow: hidden;visibility: hidden;width: 0;height: 0;} .mceContentBody{ text-align: justify; } html, body, div, h1, h2, h3, h4, h5, h6, p, img, dl, dt, dd, ol, ul, li, table, tr, form, object, embed, article, aside, canvas, command, details, fieldset, figcaption, figure, footer, group, header, hgroup, legend, mark, menu, meter, nav, output, progress, section, summary, time, audio, video { margin: 0;padding: 0;border: 0; } .mceContentBody p,.mceContentBody h1,.mceContentBody h2,.mceContentBody h3,.mceContentBody h4,.mceContentBody h5,.mceContentBody h6{margin: 0} .mceContentBody h1,.mceContentBody h2,.mceContentBody h3,.mceContentBody h4, .mceContentBody h5,.mceContentBody h6{ clear: both; padding-top: 4px; padding-bottom: 4px; padding-left: 1em; font-family: inherit; } .mceContentBody h1,.mceContentBody h2{ padding-left: 0; } .mceContentBody h2{ padding-left: 20px; } .mceContentBody h3{ padding-left: 40px; /* background-image: url('icon/h3.png'); background-repeat: no-repeat; background-position: 0 3px;*/ } .mceContentBody h4{ padding-left: 60px; /* background-image: url('icon/h4.png'); background-repeat: no-repeat; background-position: 0 10px;*/ } .mceContentBody h1,.mceContentBody h2,.mceContentBody h3,.mceContentBody h4{ /*color: #8F261B;*/ } /*.mceContentBody>p:not(.first-child),.mceContentBody>p:not(:first-child), .mceContentBody .indent{ text-indent: 20px; }*/ /*.mceContentBody>p.first-letter,.mceContentBody>p:first-child{ text-indent: 0; }*/ .mceContentBody>p,.mceContentBody>div.paragraph{ text-indent: 20px; text-align: justify; padding-top: 4px; padding-bottom: 4px; clear: both; } .mceContentBody p,.mceContentBody div.paragraph,.mceContentBody li,.mceContentBody td,.mceContentBody th{ line-height:16px; } .mceContentBody>p.first-letter,.mceContentBody>div.paragraph.first-letter{ text-indent: 0px; } /*.mceContentBody>div.paragraph:first-child:first-letter, .mceContentBody>p:first-child:first-letter,*/ .mceContentBody>div.first-letter:first-letter, .mceContentBody>p.first-letter:first-letter, .mceContentBody span.first-letter{ text-indent: 0px; font-size: 32px; line-height: 30px; display: block; float: left; padding-right: 8px; padding-left: 20px; font-size: 34px; font-family:Time New Roman; font-weight:bold; color: #8F261B; } .mceContentBody span { font-family: inherit; padding: 0px 2px 1px 2px; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody tt { font-family: inherit; padding: 0px 2px 1px 2px; background: #A8D4FF; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody .highlight-yeallow{ font-family: inherit; padding: 0px 2px 1px 2px; background: #FFFCA8; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody .highlight-red{ font-family: inherit; padding: 0px 2px 1px 2px; background: #FFA8AC; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody .highlight-blue{ font-family: inherit; padding: 0px 2px 1px 2px; background: #A8D4FF; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody .highlight-green{ font-family: inherit; padding: 0px 2px 1px 2px; background: #BAEDD3; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .mceContentBody ol{ list-style: normal; min-width: 50%; display: block; list-style-type: decimal-leading-zero; /* border-top: 1px solid #fff;*/ /* border-left: 1px solid #fff;*/ /* outline: 1px solid #ccc;*/ padding-left: 88px; padding-top: 4px; padding-bottom: 4px; margin: 0; display: block; clear: both; } .mceContentBody ol li{ border-left: 1px solid rgb(211, 171, 12); /* padding: 4px 12px 4px 12px;*/ padding-left: 12px; line-height: 16px; } .mceContentBody ul{ list-style: normal; min-width: 50%; display: block; padding-left: 80px; padding-top: 4px; padding-bottom: 4px; margin: 0; clear: both; } .mceContentBody ul li{ list-style-type: square; padding-left: 20px; } .mceContentBody a{ color:#9A350E; } .mceContentBody a:hover{ text-decoration: underline; } .mceContentBody blockquote{ overflow: hidden; margin: 4px 24px; padding: 1.2em 1.25em 0.2em 24px; background: #f3f3f0 url(icon/bg_blockquote2.gif) top left no-repeat; color: #543; } .mceContentBody span.step { background: #FFBA51; border-radius: 0.8em; -moz-border-radius: 0.8em; -webkit-border-radius: 0.8em; color: #ffffff; display: inline-block; line-height: 1.6em; margin-right: 5px; text-align: center; padding: 0 0.5em; } .mceContentBody hr{margin: 0 64px auto;padding: 0;height: 0px;border-top:1px solid #ccc;border-bottom: none;display: block;} .mceContentBody table{display: table;border-collapse: collapse;margin: 0 auto} .mceContentBody th,.mceContentBody td{border: 1px solid rgb(167, 125, 123);display: table-cell; padding: 4px} .mceContentBody tr{display: table-row} .mceContentBody th>p,.mceContentBody td>p{ padding: 0 } /*body.mceContentBody table.mceItemTable{border: 1px dashed rgb(167, 125, 123);;border-collapse: inherit;} body.mceContentBody table.mceItemTable th,body.mceContentBody table.mceItemTable td{border: 1px dashed rgb(167, 125, 123);;border-collapse: inherit;}*/ .mceContentBody pre { white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ } .mceContentBody .etabs{ padding: 8px 0 0 0px } .mceContentBody .etabs .tab-tit{ border-bottom: 1px solid #ccc; } .mceContentBody .etabs>ul.tab-nav{ /* display: block;float: left;*/ list-style: none; height: 25px;padding: 0 20px;margin: 0 } .mceContentBody .etabs>ul.tab-nav>li{ list-style: none; float: left; cursor: pointer; text-align: center; position: relative; margin: 0 3px 0 0; padding: 0 12px; height: 24px; line-height: 24px; color: #676568; border: 1px solid #bea787; min-width: 60px; } .mceContentBody .etabs>ul.tab-nav>li.newtab, .mceContentBody .etabs>ul.tab-nav>li.newtab:hover, .mceContentBody .etabs>ul.tab-nav>li.hover.newtab:hover{ border: 0px solid #bea787;width: 24px;min-width: 24px; background:url('../images/16/addg.png') no-repeat center; } .mceContentBody .etabs>ul.tab-nav>li.newtab a{background: #ccc;border-radius: 4px;} .mceContentBody .etabs>ul.tab-nav>li a{text-decoration: none} .mceContentBody .etabs>ul.tab-nav>li.hover, .mceContentBody .etabs>ul.tab-nav>li:hover{ font-weight: bold; color: #920000; background: #fff; border: 1px solid #bea787; border-bottom: none; height: 25px; line-height: 25px; } .mceContentBody .tab{padding: 8px} body.mceContentBody .mceNonEditable:hover,.mceContentBody .mceNonEditable { background-color: #F7F5AF !important; } /*body.mceContentBody .tab{border: 2px dotted #BAEDD3}*/ body.mceContentBody .mceEditable { background: white; border: 1px dotted #FFBA51; } .tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;} .tabs>ul {margin:0; padding:0; list-style:none;} .tabs>ul>li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} .tabs>ul>li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} .tabs>ul>li span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} .tabs>ul>li.current span {background:url(img/tabs.gif) no-repeat right -54px;} .tabs a {text-decoration:none; font-size:11px;} .tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} /* Panels */ .panel_wrapper div.panel {display:none;} .panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} .panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;}
0x6a
trunk/libraries/frontend/css/typography.css
CSS
asf20
8,654
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ .input,input[type='text'],input[type='password'],input[type='number'],input[type='search']{ } .ui-multiselect-menu .ui-widget-header .ui-multiselect-filter input{height: 19px;line-height: 19px;padding: 0}
0x6a
trunk/libraries/frontend/css/ie7.css
CSS
asf20
429
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */
0x6a
trunk/libraries/frontend/css/ielt9.css
CSS
asf20
225
<html> <head> <title>403 Forbidden</title> </head> <body> <p>Directory access is forbidden.</p> </body> </html>
0x6a
trunk/libraries/frontend/css/index.html
HTML
asf20
114
/* Project : 48c6c450f1a4a0cc53d9585dc0fee742 Created on : Mar 16, 2013, 11:29:15 PM Author : Truong Khuong - khuongxuantruong@gmail.com Description : Purpose of the stylesheet follows. */ @-webkit-keyframes loaddingbar {0% {background-position: 0 0;} 100% {background-position: -20px 0;}} .loaddingbar{ position: fixed;bottom: 1px;left: 0;right:0; border: 1px solid white;z-index: 9999; outline: 1px solid blue; display: none; } .loaddingbar div{ height: 8px; background-repeat: repeat-x; background-size: 20px 10px; background-color: #ccc; background-attachment: scroll; background-image: -webkit-linear-gradient(315deg,transparent,transparent 33%,rgba(0,0,0,0.2) 33%,rgba(0,0,0,0.2) 66%,transparent 66%,transparent); background-image: -moz-linear-gradient(315deg,transparent,transparent 33%,rgba(0,0,0,0.2) 33%,rgba(0,0,0,0.2) 66%,transparent 66%,transparent); background-image: -o-linear-gradient(315deg,transparent,transparent 33%,rgba(0,0,0,0.2) 33%,rgba(0,0,0,0.2) 66%,transparent 66%,transparent); background-image: linear-gradient(315deg,transparent,transparent 33%,rgba(0,0,0,0.2) 33%,rgba(0,0,0,0.2) 66%,transparent 66%,transparent); -webkit-animation-duration: .8s; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; -moz-animation-duration: .8s; -moz-animation-iteration-count: infinite; -moz-animation-timing-function: linear; -webkit-animation-name: loaddingbar; -moz-animation-name: loaddingbar; } ::-webkit-scrollbar,::-webkit-scrollbar-thumb{overflow:visible;border:solid 1px #a6a6a6} ::-webkit-scrollbar{width:10px;height: 10px;background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(202,202,202,0.07)),color-stop(100%,rgba(229,229,229,0.07)));background:-webkit-linear-gradient(left,rgba(202,202,202,0.07) 0%,rgba(229,229,229,0.07) 100%);-webkit-box-shadow:0 0 1px 0 rgba(0,0,0, .15) inset,0 1px 0 0 #fff;box-shadow:0 0 1px 0 rgba(0,0,0, .15) inset,0 1px 0 0 #fff;background-color:#e5e5e5} ::-webkit-scrollbar-thumb{background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(233,233,233,0.05)),color-stop(100%,rgba(221,221,221,0.05)));background:-webkit-linear-gradient(left,rgba(233,233,233,0.05) 0%,rgba(221,221,221,0.05) 100%);-webkit-box-shadow:0 2px 1px 0 rgba(0,0,0, .05);box-shadow:0 2px 1px 0 rgba(0,0,0, .05);background-color:#e9e9e9} ::-webkit-scrollbar-thumb:hover{background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(255,255,255,0.05)),color-stop(100%,rgba(0,0,0,0.05)));background:-webkit-linear-gradient(left,rgba(255,255,255,0.05) 0%,rgba(0,0,0,0.05) 100%);-webkit-box-shadow:0 2px 1px 0 rgba(0,0,0, .05);box-shadow:0 2px 1px 0 rgba(0,0,0, .05);background-color:#f5f5f5} ::-webkit-scrollbar-thumb:active{background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(255,255,255,0.03)),color-stop(100%,rgba(0,0,0,0.03)));background:-webkit-linear-gradient(left,rgba(255,255,255,0.03) 0%,rgba(0,0,0,0.03) 100%);-webkit-box-shadow:0 2px 1px 0 rgba(0,0,0, .05);box-shadow:0 2px 1px 0 rgba(0,0,0, .05);background-color:#f5f5f5} ::-webkit-scrollbar-button{height:0;display:none;background-color:transparent} body { min-width: 960px; font-family: tahoma,arial,sans-serif; font-size: 11px; } .b-g-ldg{background:url('../images/loading.gif') no-repeat center} .b-g-c-w{background-color:#fff} .b-g-c-i{background-color: initial;} .b-g-c-w-10{background-color:#fff;background-color: rgba(255,255,255,.10)} .b-g-c-w-20{background-color:#fff;background-color: rgba(255,255,255,.20)} .b-g-c-w-50{background-color:#fff;background-color: rgba(255,255,255,.50)} .b-g-c-w-80{background-color:#fff;background-color: rgba(255,255,255,.80)} .b-g-c-blue{background-color: #76a7fa;} .l-50-pc{left: 50%} .t-50-pc{top: 50%} .container_24 ,.gcontain{margin-left: auto;margin-right: auto;width: 960px;display:block;position:relative} .grid_x, .grid_16px, .grid_20px, .grid_24px, .grid_32px, .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6, .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12, .grid_13, .grid_14, .grid_15, .grid_16, .grid_17, .grid_18, .grid_19, .grid_20, .grid_21, .grid_22, .grid_23, .grid_24 { display:inline-block;float: left;margin-left: 0px;margin-right: 0px; } .push_1, .pull_1, .push_2, .pull_2, .push_3, .pull_3, .push_4, .pull_4, .push_5, .pull_5, .push_6, .pull_6, .push_7, .pull_7, .push_8, .pull_8, .push_9, .pull_9, .push_10, .pull_10, .push_11, .pull_11, .push_12, .pull_12, .push_13, .pull_13, .push_14, .pull_14, .push_15, .pull_15, .push_16, .pull_16, .push_17, .pull_17, .push_18, .pull_18, .push_19, .pull_19, .push_20, .pull_20, .push_21, .pull_21, .push_22, .pull_22, .push_23, .pull_23, .push_24, .pull_24 { position:relative; } .alpha {margin-left: 0;} .omega {margin-right: 0;} .grid_16px,.w-16 {width:16px;} .grid_20px,.w-20 {width:20px;} .grid_32px,.w-32 {width:32px;} .grid_24px,.w-24 {width:24px;} .grid_1 {width:40px;} .grid_2 {width:80px;} .grid_3 {width:120px;} .grid_4 {width:160px;} .grid_28px,.w-28 {width:28px;} .grid_5 {width:200px;} .grid_6 {width:240px;} .grid_7 {width:280px;} .grid_8 {width:320px;} .grid_9 {width:360px;} .grid_10 {width:400px;} .grid_11 {width:440px;} .grid_12 {width:480px;} .grid_13 {width:520px;} .grid_14 {width:560px;} .grid_15 {width:600px;} .grid_16 {width:640px;} .grid_17 {width:680px;} .grid_18 {width:720px;} .grid_19 {width:760px;} .grid_20 {width:800px;} .grid_21 {width:840px;} .grid_22 {width:880px;} .grid_23 {width:920px;} .grid_24 {width:960px;} .h-16 {height:16px;} .h-20 {height:20px;} .h-24 {height:24px;} .h-28 {height:28px;} .h-32 {height:32px;} .h-g-1 {height:40px;} .h-g-2 {height:80px;} .h-g-3 {height:120px;} .h-g-4 {height:160px;} .h-g-5 {height:200px;} .h-g-6 {height:240px;} .h-g-7 {height:280px;} .h-g-8 {height:320px;} .h-g-9 {height:360px;} .h-g-10 {height:400px;} .h-g-11 {height:440px;} .h-g-12 {height:480px;} .h-g-13 {height:520px;} .h-g-14 {height:560px;} .h-g-15 {height:600px;} .h-g-16 {height:640px;} .h-g-17 {height:680px;} .h-g-18 {height:720px;} .h-g-19 {height:760px;} .h-g-20 {height:800px;} .h-g-21 {height:840px;} .h-g-22 {height:880px;} .h-g-23 {height:920px;} .h-g-24 {height:960px;} /* Prefix Extra Space << 24 Columns-----------------------------------------------------------------------------*/ .upfix-1 {margin-top:-40px;} .upfix-2 {margin-top:-80px;} .upfix-3 {margin-top:-120px;} .upfix-4 {margin-top:-160px;} .upfix-5 {margin-top:-200px;} .upfix-6 {margin-top:-240px;} .upfix-7 {margin-top:-280px;} .upfix-8 {margin-top:-320px;} .upfix-9 {margin-top:-360px;} .upfix-10 {margin-top:-400px;} .upfix-11 {margin-top:-440px;} .upfix-12 {margin-top:-480px;} /* Prefix Extra Space << 24 Columns-----------------------------------------------------------------------------*/ .reprefix-1 {margin-left:-40px;} .reprefix-2 {margin-left:-80px;} .reprefix-3 {margin-left:-120px;} .reprefix-4 {margin-left:-160px;} .reprefix-5 {margin-left:-200px;} .reprefix-6 {margin-left:-240px;} .reprefix-7 {margin-left:-280px;} .reprefix-8 {margin-left:-320px;} .reprefix-9 {margin-left:-360px;} .reprefix-10 {margin-left:-400px;} .reprefix-11 {margin-left:-440px;} .reprefix-12 {margin-left:-480px;} /* Prefix Extra Space >> 24 Columns-----------------------------------------------------------------------------*/ .prefix_1 {padding-left:40px;} .prefix_2 {padding-left:80px;} .prefix_3 {padding-left:120px;} .prefix_4 {padding-left:160px;} .prefix_5 {padding-left:200px;} .prefix_6 {padding-left:240px;} .prefix_7 {padding-left:280px;} .prefix_8 {padding-left:320px;} .prefix_9 {padding-left:360px;} .prefix_10 {padding-left:400px;} .prefix_11 {padding-left:440px;} .prefix_12 {padding-left:480px;} .prefix_13 {padding-left:520px;} .prefix_14 {padding-left:560px;} .prefix_15 {padding-left:600px;} .prefix_16 {padding-left:640px;} .prefix_17 {padding-left:680px;} .prefix_18 {padding-left:720px;} .prefix_19 {padding-left:760px;} .prefix_20 {padding-left:800px;} .prefix_21 {padding-left:840px;} .prefix_22 {padding-left:880px;} .prefix_23 {padding-left:920px;} /* Suffix Extra Space >> 24 Columns-----------------------------------------------------------------------------*/ .suffix_1 {padding-right:40px;} .suffix_2 {padding-right:80px;} .suffix_3 {padding-right:120px;} .suffix_4 {padding-right:160px;} .suffix_5 {padding-right:200px;} .suffix_6 {padding-right:240px;} .suffix_7 {padding-right:280px;} .suffix_8 {padding-right:320px;} .suffix_9 {padding-right:360px;} .suffix_10 {padding-right:400px;} .suffix_11 {padding-right:440px;} .suffix_12 {padding-right:480px;} .suffix_13 {padding-right:520px;} .suffix_14 {padding-right:560px;} .suffix_15 {padding-right:600px;} .suffix_16 {padding-right:640px;} .suffix_17 {padding-right:680px;} .suffix_18 {padding-right:720px;} .suffix_19 {padding-right:760px;} .suffix_20 {padding-right:800px;} .suffix_21 {padding-right:840px;} .suffix_22 {padding-right:880px;} .suffix_23 {padding-right:920px;} /* Push Space >> 24 Columns------------------------------------------------------------------------------------*/ .push_1 {left:40px;} .push_2 {left:80px;} .push_3 {left:120px;} .push_4 {left:160px;} .push_5 {left:200px;} .push_6 {left:240px;} .push_7 {left:280px;} .push_8 {left:320px;} .push_9 {left:360px;} .push_10 {left:400px;} .push_11 {left:440px;} .push_12 {left:480px;} .push_13 {left:520px;} .push_14 {left:560px;} .push_15 {left:600px;} .push_16 {left:640px;} .push_17 {left:680px;} .push_18 {left:720px;} .push_19 {left:760px;} .push_20 {left:800px;} .push_21 {left:840px;} .push_22 {left:880px;} .push_23 {left:920px;} /* Pull Space >> 24 Columns-----------------------------------------------------------------------------------*/ .pull_1 {left:-40px;} .pull_2 {left:-80px;} .pull_3 {left:-120px;} .pull_4 {left:-160px;} .pull_5 {left:-200px;} .pull_6 {left:-240px;} .pull_7 {left:-280px;} .pull_8 {left:-320px;} .pull_9 {left:-360px;} .pull_10 {left:-400px;} .pull_11 {left:-440px;} .pull_12 {left:-480px;} .pull_13 {left:-520px;} .pull_14 {left:-560px;} .pull_15 {left:-600px;} .pull_16 {left:-640px;} .pull_17 {left:-680px;} .pull_18 {left:-720px;} .pull_19 {left:-760px;} .pull_20 {left:-800px;} .pull_21 {left:-840px;} .pull_22 {left:-880px;} .pull_23 {left:-920px;} .clear {clear: both;display: block;overflow: hidden;visibility: hidden;width: 0;height: 0;} .clearfix:before, .clearfix:after {content: '\0020';display: block;overflow: hidden;visibility: hidden;width: 0;height: 0;} .clearfix:after {clear: both;} .clearfix {zoom: 1;} .f-l{float: left} .f-r{float: right} .f-n{float: none} .p-f{position: fixed} .lh16, .l-h-16{line-height: 16px} .lh20, .l-h-20{line-height: 20px} .lh24, .l-h-24{line-height: 24px} .lh28, .l-h-28{line-height: 28px} .l-h-32{line-height: 32px} .l-h-36{line-height: 36px} .l-h-40{line-height: 40px} .l-h-44{line-height: 44px} .z-i-1{z-index: 1} .z-i-10{z-index: 10} .z-i-100{z-index: 100} .z-i-1000{z-index: 1000} .z-i-999{z-index: 999} .z-i-1001{z-index: 1001} .z-i-0{z-index: 0} .z-i-2{z-index: 2} .z-i-10k{z-index: 10000} .z-i-11k{z-index: 11000} .m-t--4{margin-top : -4px} .m-r--4{margin-right : -4px} .m-b--4{margin-bottom : -4px} .m-l--4{margin-left : -4px} .m-t--2{margin-top : -2px} .m-r--2{margin-right : -2px} .m-b--2{margin-bottom : -2px} .m-l--2{margin-left : -2px} .m-t--1{margin-top : -1px} .m-r--1{margin-right : -1px} .m-b--1{margin-bottom : -1px} .m-l--1{margin-left : -1px} .m-0{margin : 0} .p-0{padding: 0} .m-2{margin : 2px} .p-2{padding: 2px} .m-4{margin : 4px} .p-4{padding: 4px} .m-8{margin : 8px} .p-8{padding: 8px} .m-12{margin: 12px} .p-12{padding: 12px} .m-16{margin: 16px} .p-16{padding: 16px} .m-20{margin: 20px} .p-20{padding: 20px} .m-24{margin: 24px} .p-24{padding: 24px} .m-28{margin: 28px} .p-28{padding: 28px} .m-32{margin: 32px} .p-32{padding: 32px} .p-40{padding: 40px} .m-t-0{margin-top : 0px} .m-r-0{margin-right : 0px} .m-b-0{margin-bottom : 0px} .m-l-0{margin-left : 0px} .p-t-0{padding-top : 0px} .p-r-0{padding-right : 0px} .p-b-0{padding-bottom : 0px} .p-l-0{padding-left : 0px} .m-t-2{margin-top : 2px} .m-r-2{margin-right : 2px} .m-b-2{margin-bottom : 2px} .m-l-2{margin-left : 2px} .p-t-2{padding-top : 2px} .p-r-2{padding-right : 2px} .p-b-2{padding-bottom : 2px} .p-l-2{padding-left : 2px} .m-t-1{margin-top : 1px} .m-r-1{margin-right : 1px} .m-b-1{margin-bottom : 1px} .m-l-1{margin-left : 1px} .p-t-1{padding-top : 1px} .p-r-1{padding-right : 1px} .p-b-1{padding-bottom : 1px} .p-l-1{padding-left : 1px} .m-t-4{margin-top : 4px} .m-r-4{margin-right : 4px} .m-b-4{margin-bottom : 4px} .m-l-4{margin-left : 4px} .p-t-3{padding-top : 3px} .p-t-4{padding-top : 4px} .p-r-4{padding-right : 4px} .p-b-4{padding-bottom : 4px} .p-l-4{padding-left : 4px} .m-t-8{margin-top : 8px} .m-r-8{margin-right : 8px} .m-b-8{margin-bottom : 8px} .m-l-8{margin-left : 8px} .p-t-7{padding-top : 7px} .p-t-8{padding-top : 8px} .p-r-8{padding-right : 8px} .p-b-8{padding-bottom : 8px} .p-l-8{padding-left : 8px} .w-8{width : 8px} .m-t-12{margin-top : 12px} .m-r-12{margin-right : 12px} .m-b-12{margin-bottom : 12px} .m-l-12{margin-left : 12px} .p-t-11{padding-top : 11px} .p-t-12{padding-top : 12px} .p-r-12{padding-right : 12px} .p-b-12{padding-bottom : 12px} .p-l-12{padding-left : 12px} .w-12{width : 12px} .w-10{width : 10px} .w-14{width : 14px} .m-t-16{margin-top : 16px} .m-r-16{margin-right : 16px} .m-b-16{margin-bottom : 16px} .m-l-16{margin-left : 16px} .p-t-15{padding-top : 15px} .p-t-16{padding-top : 16px} .p-r-16{padding-right : 16px} .p-b-16{padding-bottom : 16px} .p-l-16{padding-left : 16px} .w-16{width : 16px} .m-t-20{margin-top : 20px} .m-r-20{margin-right : 20px} .m-b-20{margin-bottom : 20px} .m-l-20{margin-left : 20px} .p-t-20{padding-top : 20px} .p-r-20{padding-right : 20px} .p-b-20{padding-bottom : 20px} .p-l-20{padding-left : 20px} .w-20{width : 20px} .w-18{width : 18px} .m-t-24{margin-top : 24px} .m-r-24{margin-right : 24px} .m-b-24{margin-bottom : 24px} .m-l-24{margin-left : 24px} .p-t-24{padding-top : 24px} .p-r-24{padding-right : 24px} .p-b-24{padding-bottom : 24px} .p-l-24{padding-left : 24px} .w-24{width : 24px} .w-22{width : 22px} .m-t-28{margin-top : 28px} .m-r-28{margin-right : 28px} .m-b-28{margin-bottom : 28px} .m-l-28{margin-left : 28px} .p-t-28{padding-top : 28px} .p-r-28{padding-right : 28px} .p-b-28{padding-bottom : 28px} .p-l-28{padding-left : 28px} .w-28{width : 28px} .w-26{width : 26px} .m-t-32{margin-top : 32px} .m-r-32{margin-right : 32px} .m-b-32{margin-bottom : 32px} .m-l-32{margin-left : 32px} .p-t-32{padding-top : 32px} .p-r-32{padding-right : 32px} .p-b-32{padding-bottom : 32px} .p-l-32{padding-left : 32px} .w-32{width : 32px} .w-30{width : 30px} .m-t-40{margin-top : 40px} .m-r-40{margin-right : 40px} .m-b-40{margin-bottom : 40px} .m-l-40{margin-left : 40px} .p-t-40{padding-top : 40px} .p-r-40{padding-right : 40px} .p-b-40{padding-bottom : 40px} .p-l-40{padding-left : 40px} .w-40{width : 40px} .w-38{width : 38px} .m-t-60{margin-top : 60px} .m-r-60{margin-right : 60px} .m-b-60{margin-bottom : 60px} .m-l-60{margin-left : 60px} .p-t-60{padding-top : 60px} .p-r-60{padding-right : 60px} .p-b-60{padding-bottom : 60px} .p-l-60{padding-left : 60px} .w-60{width : 60px} .m-t-80{margin-top : 80px} .m-r-80{margin-right : 80px} .m-b-80{margin-bottom : 80px} .m-l-80{margin-left : 80px} .p-t-80{padding-top : 80px} .p-r-80{padding-right : 80px} .p-b-80{padding-bottom : 80px} .p-l-80{padding-left : 80px} .w-80{width : 80px} .m-t-100{margin-top : 100px} .m-r-100{margin-right : 100px} .m-b-100{margin-bottom : 100px} .m-l-100{margin-left : 100px} .p-t-100{padding-top : 100px} .p-r-100{padding-right : 100px} .p-b-100{padding-bottom : 100px} .p-l-100{padding-left : 100px} .w-100{width : 100px} .m-t-120{margin-top : 120px} .m-r-120{margin-right : 120px} .m-b-120{margin-bottom : 120px} .m-l-120{margin-left : 120px} .p-t-120{padding-top : 120px} .p-r-120{padding-right : 120px} .p-b-120{padding-bottom : 120px} .p-l-120{padding-left : 120px} .w-120{width : 120px} .m-t-140{margin-top : 140px} .m-r-140{margin-right : 140px} .m-b-140{margin-bottom : 140px} .m-l-140{margin-left : 140px} .p-t-140{padding-top : 140px} .p-r-140{padding-right : 140px} .p-b-140{padding-bottom : 140px} .p-l-140{padding-left : 140px} .w-140{width : 140px} .m-t-160{margin-top : 160px} .m-r-160{margin-right : 160px} .m-b-160{margin-bottom : 160px} .m-l-160{margin-left : 160px} .p-t-160{padding-top : 160px} .p-r-160{padding-right : 160px} .p-b-160{padding-bottom : 160px} .p-l-160{padding-left : 160px} .w-160{width : 160px} .m-t-180{margin-top : 180px} .m-r-180{margin-right : 180px} .m-b-180{margin-bottom : 180px} .m-l-180{margin-left : 180px} .p-t-180{padding-top : 180px} .p-r-180{padding-right : 180px} .p-b-180{padding-bottom : 180px} .p-l-180{padding-left : 180px} .w-180{width : 180px} .m-t-200{margin-top : 200px} .m-r-200{margin-right : 200px} .m-b-200{margin-bottom : 200px} .m-l-200{margin-left : 200px} .p-t-200{padding-top : 200px} .p-r-200{padding-right : 200px} .p-b-200{padding-bottom : 200px} .p-l-200{padding-left : 200px} .w-200{width : 200px} .m-t-220{margin-top : 220px} .m-r-220{margin-right : 220px} .m-b-220{margin-bottom : 220px} .m-l-220{margin-left : 220px} .p-t-220{padding-top : 220px} .p-r-220{padding-right : 220px} .p-b-220{padding-bottom : 220px} .p-l-220{padding-left : 220px} .w-220{width : 220px} .m-t-240{margin-top : 240px} .m-r-240{margin-right : 240px} .m-b-240{margin-bottom : 240px} .m-l-240{margin-left : 240px} .p-t-240{padding-top : 240px} .p-r-240{padding-right : 240px} .p-b-240{padding-bottom : 240px} .p-l-240{padding-left : 240px} .w-240{width : 240px} .w-260{width : 260px} .w-280{width : 280px} .w-300{width : 300px} .w-320{width : 320px} .w-340{width : 340px} .w-360{width : 360px} .w-380{width : 380px} .w-400{width : 400px} .w-440{width : 440px} .w-480{width : 480px} .w-520{width : 520px} .w-560{width : 560px} .w-600{width : 600px} .w-640{width : 640px} .w-680{width : 680px} .w-720{width : 720px} .w-760{width : 760px} .w-800{width : 800px} .w-840{width : 840px} .w-880{width : 880px} .w-920{width : 920px} .w-960{width : 960px} .p-a{position: absolute} .p-r{position: relative} .t-a-c{text-align: center} .t-a-l{text-align: left} .t-a-r{text-align: right}.t-a-j{text-align: justify} .b-r-1{-webkit-border-radius: 1px;-moz-border-radius: 1px;border-radius: 1px;} .b-r-t-1{-webkit-border-radius: 1px 1px 0 0;-moz-border-radius: 1px 1px 0 0;border-radius: 1px 1px 0 0} .b-r-t-2{-webkit-border-radius: 2px 2px 0 0;-moz-border-radius: 2px 2px 0 0;border-radius: 2px 2px 0 0} .b-r-t-3{-webkit-border-radius: 3px 3px 0 0;-moz-border-radius: 3px 3px 0 0;border-radius: 3px 3px 0 0} .b-r-t-4{-webkit-border-radius: 4px 4px 0 0;-moz-border-radius: 4px 4px 0 0;border-radius: 4px 4px 0 0} .b-r-t-5{-webkit-border-radius: 5px 5px 0 0;-moz-border-radius: 5px 5px 0 0;border-radius: 5px 5px 0 0} .b-r-t-6{-webkit-border-radius: 6px 6px 0 0;-moz-border-radius: 6px 6px 0 0;border-radius: 6px 6px 0 0} .b-r-t-7{-webkit-border-radius: 7px 7px 0 0;-moz-border-radius: 7px 7px 0 0;border-radius: 7px 7px 0 0} .b-r-t-8{-webkit-border-radius: 8px 8px 0 0;-moz-border-radius: 8px 8px 0 0;border-radius: 8px 8px 0 0} .b-r-t-9{-webkit-border-radius: 9px 9px 0 0;-moz-border-radius: 9px 9px 0 0;border-radius: 9px 9px 0 0} .b-r-t-10{-webkit-border-radius: 10px 10px 0 0;-moz-border-radius: 10px 10px 0 0;border-radius: 10px 10px 0 0} .b-r-b-1{-webkit-border-radius: 0 0 1px 1px;-moz-border-radius: 0 0 1px 1px;border-radius: 0 0 1px 1px} .b-r-b-2{-webkit-border-radius: 0 0 2px 2px;-moz-border-radius: 0 0 2px 2px;border-radius: 0 0 2px 2px} .b-r-b-3{-webkit-border-radius: 0 0 3px 3px;-moz-border-radius: 0 0 3px 3px;border-radius: 0 0 3px 3px} .b-r-b-4{-webkit-border-radius: 0 0 4px 4px;-moz-border-radius: 0 0 4px 4px;border-radius: 0 0 4px 4px} .b-r-b-5{-webkit-border-radius: 0 0 5px 5px;-moz-border-radius: 0 0 5px 5px;border-radius: 0 0 5px 5px} .b-r-b-6{-webkit-border-radius: 0 0 6px 6px;-moz-border-radius: 0 0 6px 6px;border-radius: 0 0 6px 6px} .b-r-b-7{-webkit-border-radius: 0 0 7px 7px;-moz-border-radius: 0 0 7px 7px;border-radius: 0 0 7px 7px} .b-r-b-8{-webkit-border-radius: 0 0 8px 8px;-moz-border-radius: 0 0 8px 8px;border-radius: 0 0 8px 8px} .b-r-b-9{-webkit-border-radius: 0 0 9px 9px;-moz-border-radius: 0 0 9px 9px;border-radius: 0 0 9px 9px} .b-r-b-10{-webkit-border-radius: 0 0 10px 10px;-moz-border-radius: 0 0 10px 10px;border-radius: 0 0 10px 10px} .b-t-r-r-1{-webkit-border-top-right-radius: 1px;-moz-border-radius-topright: 1px;border-top-right-radius: 1px;} .b-b-r-r-1{-webkit-border-bottom-right-radius: 1px;-moz-border-radius-bottomright: 1px;border-bottom-right-radius: 1px;} .b-b-l-r-1{-webkit-border-bottom-left-radius: 1px;-moz-border-radius-bottomleft: 1px;border-bottom-left-radius: 1px;} .b-t-l-r-1{-webkit-border-top-left-radius: 1px;-moz-border-radius-topleft: 1px;border-top-left-radius: 1px;} .b-r-2{-webkit-border-radius: 2px;-moz-border-radius: 2px;border-radius: 2px;} .b-t-r-r-2{-webkit-border-top-right-radius: 2px;-moz-border-radius-topright: 2px;border-top-right-radius: 2px;} .b-b-r-r-2{-webkit-border-bottom-right-radius: 2px;-moz-border-radius-bottomright: 2px;border-bottom-right-radius: 2px;} .b-b-l-r-2{-webkit-border-bottom-left-radius: 2px;-moz-border-radius-bottomleft: 2px;border-bottom-left-radius: 2px;} .b-t-l-r-2{-webkit-border-top-left-radius: 2px;-moz-border-radius-topleft: 2px;border-top-left-radius: 2px;} .b-r-3{-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;} .b-t-r-r-3{-webkit-border-top-right-radius: 3px;-moz-border-radius-topright: 3px;border-top-right-radius: 3px;} .b-b-r-r-3{-webkit-border-bottom-right-radius: 3px;-moz-border-radius-bottomright: 3px;border-bottom-right-radius: 3px;} .b-b-l-r-3{-webkit-border-bottom-left-radius: 3px;-moz-border-radius-bottomleft: 3px;border-bottom-left-radius: 3px;} .b-t-l-r-3{-webkit-border-top-left-radius: 3px;-moz-border-radius-topleft: 3px;border-top-left-radius: 3px;} .b-r-4{-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;} .b-t-r-r-4{-webkit-border-top-right-radius: 4px;-moz-border-radius-topright: 4px;border-top-right-radius: 4px;} .b-b-r-r-4{-webkit-border-bottom-right-radius: 4px;-moz-border-radius-bottomright: 4px;border-bottom-right-radius: 4px;} .b-b-l-r-4{-webkit-border-bottom-left-radius: 4px;-moz-border-radius-bottomleft: 4px;border-bottom-left-radius: 4px;} .b-t-l-r-4{-webkit-border-top-left-radius: 4px;-moz-border-radius-topleft: 4px;border-top-left-radius: 4px;} .b-r-5{-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;} .b-t-r-r-5{-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;border-top-right-radius: 5px;} .b-b-r-r-5{-webkit-border-bottom-right-radius: 5px;-moz-border-radius-bottomright: 5px;border-bottom-right-radius: 5px;} .b-b-l-r-5{-webkit-border-bottom-left-radius: 5px;-moz-border-radius-bottomleft: 5px;border-bottom-left-radius: 5px;} .b-t-l-r-5{-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;border-top-left-radius: 5px;} .b-r-6{-webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;} .b-t-r-r-6{-webkit-border-top-right-radius: 6px;-moz-border-radius-topright: 6px;border-top-right-radius: 6px;} .b-b-r-r-6{-webkit-border-bottom-right-radius: 6px;-moz-border-radius-bottomright: 6px;border-bottom-right-radius: 6px;} .b-b-l-r-6{-webkit-border-bottom-left-radius: 6px;-moz-border-radius-bottomleft: 6px;border-bottom-left-radius: 6px;} .b-t-l-r-6{-webkit-border-top-left-radius: 6px;-moz-border-radius-topleft: 6px;border-top-left-radius: 6px;} .b-r-7{-webkit-border-radius: 7px;-moz-border-radius: 7px;border-radius: 7px;} .b-t-r-r-7{-webkit-border-top-right-radius: 7px;-moz-border-radius-topright: 7px;border-top-right-radius: 7px;} .b-b-r-r-7{-webkit-border-bottom-right-radius: 7px;-moz-border-radius-bottomright: 7px;border-bottom-right-radius: 7px;} .b-b-l-r-7{-webkit-border-bottom-left-radius: 7px;-moz-border-radius-bottomleft: 7px;border-bottom-left-radius: 7px;} .b-t-l-r-7{-webkit-border-top-left-radius: 7px;-moz-border-radius-topleft: 7px;border-top-left-radius: 7px;} .b-r-8{-webkit-border-radius: 8px;-moz-border-radius: 8px;border-radius: 8px;} .b-t-r-r-8{-webkit-border-top-right-radius: 8px;-moz-border-radius-topright: 8px;border-top-right-radius: 8px;} .b-b-r-r-8{-webkit-border-bottom-right-radius: 8px;-moz-border-radius-bottomright: 8px;border-bottom-right-radius: 8px;} .b-b-l-r-8{-webkit-border-bottom-left-radius: 8px;-moz-border-radius-bottomleft: 8px;border-bottom-left-radius: 8px;} .b-t-l-r-8{-webkit-border-top-left-radius: 8px;-moz-border-radius-topleft: 8px;border-top-left-radius: 8px;} .b-r-9{-webkit-border-radius: 9px;-moz-border-radius: 9px;border-radius: 9px;} .b-t-r-r-9{-webkit-border-top-right-radius: 9px;-moz-border-radius-topright: 9px;border-top-right-radius: 9px;} .b-b-r-r-9{-webkit-border-bottom-right-radius: 9px;-moz-border-radius-bottomright: 9px;border-bottom-right-radius: 9px;} .b-b-l-r-9{-webkit-border-bottom-left-radius: 9px;-moz-border-radius-bottomleft: 9px;border-bottom-left-radius: 9px;} .b-t-l-r-9{-webkit-border-top-left-radius: 9px;-moz-border-radius-topleft: 9px;border-top-left-radius: 9px;} .b-r-10{-webkit-border-radius: 10px;-moz-border-radius: 10px;border-radius: 10px;} .b-t-r-r-10{-webkit-border-top-right-radius: 10px;-moz-border-radius-topright: 10px;border-top-right-radius: 10px;} .b-b-r-r-10{-webkit-border-bottom-right-radius: 10px;-moz-border-radius-bottomright: 10px;border-bottom-right-radius: 10px;} .b-b-l-r-10{-webkit-border-bottom-left-radius: 10px;-moz-border-radius-bottomleft: 10px;border-bottom-left-radius: 10px;} .b-t-l-r-10{-webkit-border-top-left-radius: 10px;-moz-border-radius-topleft: 10px;border-top-left-radius: 10px;} .b-d-t-n{border-top:none} .b-d-r-n{border-right:none} .b-d-b-n{border-bottom:none} .b-d-l-n{border-left:none} .o-v-f-h{overflow: hidden} .o-v-f-a{overflow: auto} .o-v-f-x-a{overflow-x: auto} .o-v-f-y-a{overflow-y: auto} .o-l-ccc{outline: 1px solid #ccc} .b-g-c-ccc{background-color: #ccc} .b-g-c-ddd{background-color: #ddd} .b-g-c-eee{background-color: #eee} .b-g-c-fa{background-color: #fafafa} .l--1{left : -1px} .t--1{top : -1px} .r--1{right : -1px} .b--1{bottom : -1px} .l-0{left : 0px} .t-0{top : 0px} .r-0{right : 0px} .b-0{bottom : 0px} .l-1{left : 1px} .t-1{top : 1px} .r-1{right : 1px} .b-1{bottom : 1px} .l-2{left : 2px} .t-2{top : 2px} .r-2{right : 2px} .b-2{bottom : 2px} .l-4{left : 4px} .t-4{top : 4px} .r-4{right : 4px} .b-4{bottom : 4px} .l-8{left : 8px} .t-8{top : 8px} .r-8{right : 8px} .b-8{bottom : 8px} .l-12{left : 12px} .t-12{top : 12px} .r-12{right : 12px} .b-12{bottom : 12px} .l-16{left : 16px} .t-16{top : 16px} .r-16{right : 16px} .b-16{bottom : 16px} .l-20{left : 20px} .t-20{top : 20px} .r-20{right : 20px} .b-20{bottom : 20px} .l-24{left : 24px} .t-24{top : 24px} .r-24{right : 24px} .b-24{bottom : 24px} .l-28{left : 28px} .t-28{top : 28px} .r-28{right : 28px} .b-28{bottom : 28px} .l-32{left : 32px} .t-32{top : 32px} .r-32{right : 32px} .b-32{bottom : 32px} .tranf-0{background: inherit !important} .tranf-b-10{background: url(../images/bg/10.png) repeat;} .tranf-b-20{background: url(../images/bg/20.png) repeat;} .tranf-b-30{background: url(../images/bg/30.png) repeat;} .tranf-b-40{background: url(../images/bg/40.png) repeat;} .tranf-b-50{background: url(../images/bg/50.png) repeat;} .tranf-b-60{background: url(../images/bg/60.png) repeat;} .tranf-b-70{background: url(../images/bg/70.png) repeat;} .tranf-b-80{background: url(../images/bg/80.png) repeat;} .tranf-b-90{background: url(../images/bg/90.png) repeat;} .tranf-w-10{background: url(../images/bg/w-10.png) repeat;} .tranf-w-20{background: url(../images/bg/w-20.png) repeat;} .tranf-w-30{background: url(../images/bg/w-30.png) repeat;} .tranf-w-40{background: url(../images/bg/w-40.png) repeat;} .tranf-w-50{background: url(../images/bg/w-50.png) repeat;} .tranf-w-60{background: url(../images/bg/w-60.png) repeat;} .tranf-w-70{background: url(../images/bg/w-70.png) repeat;} .tranf-w-80{background: url(../images/bg/w-80.png) repeat;} .tranf-w-90{background: url(../images/bg/w-90.png) repeat;} .b-d-c-ccc{border: 1px solid #ccc} .b-d-t-c-ccc{border-top:1px solid #ccc} .b-d-b-c-ccc{border-bottom:1px solid #ccc} .b-d-r-c-ccc{border-right:1px solid #ccc} .b-d-l-c-ccc{border-left:1px solid #ccc} .b-d-c-ddd{border: 1px solid #ddd} .b-d-t-c-ddd{border-top:1px solid #ddd} .b-d-b-c-ddd{border-bottom:1px solid #ddd} .b-d-r-c-ddd{border-right:1px solid #ddd} .b-d-l-c-ddd{border-left:1px solid #ddd} .b-c-ccc{border-color: #ccc} .b-c-ddd{border-color: #ddd} .b-d{border:1px solid} .b-d-t{border-top:1px solid } .b-d-l{border-left:1px solid } .b-d-b{border-bottom:1px solid } .b-d-r{border-right:1px solid } .b-s-d{-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .1);box-shadow: 0 1px 1px rgba(0, 0, 0, .1);} .b-s-d-big{-webkit-box-shadow: 0 4px 16px #cccccc;-moz-box-shadow: 0 4px 16px #cccccc;box-shadow: 0 4px 16px #cccccc;} .b-s-d-vbig{-webkit-box-shadow: 0 0px 16px #aaa;-moz-box-shadow: 0 0px 16px #aaa;box-shadow: 0 0px 16px #aaa;} .b-s-d-24{-webkit-box-shadow: 0 0px 24px #aaa;-moz-box-shadow: 0 0px 24px #aaa;box-shadow: 0 0px 24px #aaa;} .b-s-d-32{-webkit-box-shadow: 0 0px 32px #aaa;-moz-box-shadow: 0 0px 32px #aaa;box-shadow: 0 0px 32px #aaa;} .r-s-v{resize: vertical} .v-a-t{vertical-align: top} .v-a-m{vertical-align: middle} .d-p-n{display: none} .d-p-b{display: block} .d-p-i-b{display: inline-block} .w-i{width: 100%} .f-s-i{font-style: italic} .f-w-b{font-weight: bold} .f-w-n{font-weight: normal} .f-z-i{font-size: inherit} .c-s-p{cursor: pointer} .b-g-d-w{ background: #e8e8e8; background: -moz-linear-gradient(top,white 0%,#EFEFEF 100%); background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,white),color-stop(100%,#EFEFEF)); background: -webkit-linear-gradient(top,white 0%,#EFEFEF 100%); background: -o-linear-gradient(top,white 0%,#EFEFEF 100%); background: -ms-linear-gradient(top,white 0%,#EFEFEF 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff',endColorstr='#efefef',GradientType=0 ); background: linear-gradient(to bottom,white 0%,#EFEFEF 100%); } .b-g-d-g{ background: #e8e8e8; background: -moz-linear-gradient(top,#f1f1f1 0%,#ccc 100%); background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#f1f1f1),color-stop(100%,#ccc)); background: -webkit-linear-gradient(top,#f1f1f1 0%,#ccc 100%); background: -o-linear-gradient(top,#f1f1f1 0%,#ccc 100%); background: -ms-linear-gradient(top,#f1f1f1 0%,#ccc 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f1f1',endColorstr='#ccc',GradientType=0 ); background: linear-gradient(to bottom,#f1f1f1 0%,#ccc 100%); } .gadiend-classic{ background-color: #E8E8E8; background-image: -webkit-gradient(linear,0 0,0 100%,from(#FAFAFA),to(#DADADA)); background-image: -moz-linear-gradient(top,#FAFAFA,#DADADA); background-image: -o-linear-gradient(top,#FAFAFA,#DADADA); background: -webkit-linear-gradient(top,#FAFAFA 0%,#DADADA 100%); background: -ms-linear-gradient(top,#FAFAFA 0%,#DADADA 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FAFAFA',endColorstr='#DADADA',GradientType=0 ); background: linear-gradient(to bottom,#FAFAFA 0%,#DADADA 100%); } .gadiend-img{ background: url('../sysimages/bg/wbg.gif') repeat-x; } .clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; } pre , tt , legend,textarea {font-family: inherit} .classic-select { padding: 2px 2px 2px 4px; border: 1px solid #DDD; line-height: 16px; height: 24px; margin: 0; font-size: 11px; } .classic-button{ min-width: 52px; position: relative; padding: 2px 12px; border: 1px solid #ccc; line-height: 16px; height: 24px; font-size: 11px; margin: 0;outline: none; /* background-color: #E8E8E8;*/ background-image: -webkit-gradient(linear,0 0,0 100%,from(#FAFAFA),to(#DADADA)); background-image: -moz-linear-gradient(top,#FAFAFA,#DADADA); background-image: -o-linear-gradient(top,#FAFAFA,#DADADA); } .classic-button:focus, .classic-button:hover{ border: 1px solid #aaa; /* background-color: #DADADA;*/ background-image: -webkit-gradient(linear,0 0,0 100%,from(#DADADA),to(#FAFAFA)); background-image: -moz-linear-gradient(top,#DADADA,#FAFAFA); background-image: -o-linear-gradient(top,#DADADA,#FAFAFA); -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.1); -moz-box-shadow: 0 1px 1px rgba(0,0,0,.1); box-shadow: 0 1px 1px rgba(0,0,0,.1); } .classic-button:active{background: #ccc;top:1px;} .classic-button.icon{ padding: 2px 20px 2px 36px; } .classic-input{ padding: 3px 4px 4px 4px;border: 1px solid #ddd;line-height: 16px;font-size: 11px;margin: 0; /* background: #F8F7F6; -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); */ } .classic-input:hover{ background-color: white; } .classic-input:focus{ border-color: #888; } .classic-lable{line-height: 24px} .green-button{ color: white; background-color: #98BF21; border: 1px solid white; outline: 1px solid #98BF21; text-decoration: none; padding-top: 3px; padding-bottom: 4px; padding-left: 12px; padding-right: 12px; font-size: 11px; position: relative; } .green-button:hover{background-color:#7A991A;opacity: 1;} .green-button:active{top: 1px} .blue-button{ color: white; background-color: #057DB9; border: 1px solid white; outline: 1px solid #3B5999; text-decoration: none; padding-top: 3px; padding-bottom: 4px; padding-left: 12px; padding-right: 12px; font-size: 11px; position: relative; opacity: .8; } .blue-button:hover{opacity: 1;} .blue-button:active{top: 1px} .gray-button{ color: white; background-color: #cacaca; border: 1px solid white; outline: 1px solid #ccc; text-decoration: none; padding-top: 3px; padding-bottom: 4px; padding-left: 12px; padding-right: 12px; font-size: 11px; position: relative; } .gray-button:hover{background-color: #ababab} .gray-button:active{top: 1px} .orange-button{ color: white; background-color: #F1B55F; border: 1px solid white; outline: 1px solid #F1D15F; text-decoration: none; padding-top: 3px; padding-bottom: 4px; padding-left: 12px; padding-right: 12px; font-size: 11px; position: relative; } .orange-button:hover{background-color: #FFB851} .orange-button:active{top: 1px} pre,button,textArea,textarea,label{font-family: inherit} tt { font-family: inherit; padding: 0px 2px 1px 2px; background: #A8D4FF; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; } .f-z-11{font-size: 11px;} .f-z-12{font-size: 12px} .f-z-13{font-size: 13px} .f-z-14{font-size: 14px} .f-z-16{font-size: 16px} .f-f-helvetica{font-family: helvetica} .t-d-n{text-decoration: none} .tr-half-s{transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; -webkit-transition: all .5s ease-in-out;} .tr-one-s{transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -webkit-transition: all 1s ease-in-out;} table{border-collapse: collapse;} th,td{display: table-cell; padding:2px;} tr{display: table-row} table.classic-table th,table.classic-table td{border-top: 1px solid #ddd;padding: 4px 8px;} table.classic-table tr:nth-child(odd){background-color: #f7f7f7} table.classic-table tr:hover{background-color: #ebebeb;} .m-0-a{margin:0 auto} pre{ white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ }
0x6a
trunk/libraries/frontend/css/grid.css
CSS
asf20
36,056
<!DOCTYPE html> <html lang="en"> <head> <title>403 Request forbidden</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body{background: #ebebeb;font-family: dotum,tahoma} .error_contain{ padding: 0px; position:relative; } .error_contain div{ width:500px;margin:0 auto; } .error_contain h1{ padding: 40px 0; font-family: arial; text-align: center; margin: 0; font-size: 169px; line-height: normal; color: #ffffff; text-shadow: 0 0 10px #ffffff, 0 4px 3px #ffffff, 0 9px 3px #dddddd, 0 12px 1px #cccccc, 0 14px 5px rgba(0, 0, 0, 0.4), 0 20px 10px rgba(0, 0, 0, 0.1), 0 15px 80px rgba(0, 0, 100, 0.2); } .error_contain h3{color: #777;margin: 0;padding: 8px;padding-top: 20px} .error_contain p{margin: 0;padding: 8px;color: #777;text-align: justify;font-size: 13px} </style> </head> <body> <div class="error_contain"> <h1 style="">403</h1> <div> <h3>Oops! Request forbidden...<span style="float: right">٩(๏̯͡๏)۶</span></h3> <p> Sorry, it appears the page you were looking for is forbidden and not accessible. If the problem persists, please contact our support at example@domain.com. </p> </div> </div> </body> </html>
0x6a
trunk/libraries/frontend/index.html
HTML
asf20
1,319
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Start work</title> <meta http-equiv="content-type" content="text/javascript;charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/grid.css"/> <link type="text/css" rel="stylesheet" href="css/frontend.styles.css"/> <link type="text/css" rel="stylesheet" href="css/typography.css"/> </head> <body> <div class="head"> <div class="first"> <div class="h-36 p-b-4 gcontain l-50-pc reprefix-12"> <div id="hotline" class="hotline p-t-8 p-b-8 p-l-32 l-h-20 grid_x p-r-8"> HOTLINE : <strong>0909 199 199 - (08) 6 2872 931</strong> </div> <div id="auth" class="auth p-t-8 p-l-32 p-b-8 p-r-8 l-h-20 grid_x f-r"> <a href="">Đăng ký</a> | <a href="">Đăng nhập</a> </div> </div> </div> <div class="second gcontain h-g-4 l-50-pc reprefix-12"> <div id="logo" class="grid_8 h-g-4"> <a href="start_home.html"> <img src="images/logo.png" alt=""/> </a> </div> <div id="nav" class="nav"> <ul> <li><a class="active" href="start_home.html">TRANG CHỦ</a></li> <li><a href="about.html">GIỚI THIỆU</a></li> <li><a href="service.html">DỊCH VỤ</a></li> <li><a href="project.html">DỰ ÁN</a></li> <li><a href="contact.html">LIÊN LẠC</a></li> </ul> </div> </div> </div> <!-- <div id="slider" class="slider b-g-c-ccc p-r"> <div class="gcontain h-g-10 l-50-pc reprefix-12 "> <img src='images/slider1.png' width="960" height="400" alt=""/> </div> <div class="nav t-a-c"> <a class="active">1</a> <a>1</a> <a>1</a> <a>1</a> </div> </div>--> <!-- <div id="banner" class="banner b-g-c-blue"> </div>--> <div class="product-banner"> <div class="gcontain l-50-pc reprefix-12 "> <div class="title">Contact Us - What we did?</div> </div> </div> <div class="main"> <div class="gcontain l-50-pc reprefix-12"> <div class="p-t-40"> <div class="grid_7"> <div class="intro"> <div class="title"><h2>THÔNG TIN LIÊN LẠC</h2></div> <ul class="onium"> <li class="aa"><a href="">181/19, Hồng Lạc, P.10, Q.Tân Bình, TP. HCM</a></li> <li class="ab"><a href="">PRINTING</a></li> <li class="ac"><a href="">DESIGN & BRANDING</a></li> <li class="ad"><a href="">PRODUCTION</a></li> </ul> </div> </div> <div class="grid_17"> <div class="intro prefix_1"> <div class="title"> <h2>Activities</h2> </div> <div class="t-a-j p-b-40 p-t-40"> <form> <div class="grid_8"> <br/>Email<br/> <input type="text" value="" data-putto="#eu" id="_username" name="_username" class="classic-input w-240 validate[required] "> </div> <div class="grid_8"> <br/>Name<br/> <input type="text" value="" data-putto="#eu" id="_username" name="_username" class="classic-input w-240 validate[required] "> </div> <div class="grid_14"> <br/>Message<br/> <textarea class="w-i"></textarea> </div> </form> </div> </div> </div> </div> </div> </div> <div class="clear"></div> <div class="p-r"> <div class="gcontain l-50-pc reprefix-12 "> <div class="foot-line"></div> </div> </div> <div class="clear"></div> <div id="banner" class="footer"> </div>
0x6a
trunk/libraries/frontend/html/contact.html
HTML
asf20
4,774
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Start work</title> <meta http-equiv="content-type" content="text/javascript;charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/grid.css"/> <link type="text/css" rel="stylesheet" href="css/frontend.styles.css"/> </head> <body> <div class="head"> <div class="first"> <div class="h-36 p-b-4 gcontain l-50-pc reprefix-12"> <div id="hotline" class="hotline p-t-8 p-b-8 p-l-32 l-h-20 grid_x p-r-8"> HOTLINE : <strong>0909 199 199 - (08) 6 2872 931</strong> </div> <div id="auth" class="auth p-t-8 p-l-32 p-b-8 p-r-8 l-h-20 grid_x f-r"> <a href="">Đăng ký</a> | <a href="">Đăng nhập</a> </div> </div> </div> <div class="second gcontain h-g-4 l-50-pc reprefix-12"> <div id="logo" class="grid_8 h-g-4"> <a href="start_home.html"> <img src="images/logo.png" alt=""/> </a> </div> <div id="nav" class="nav"> <ul> <li><a class="active" href="start_home.html">TRANG CHỦ</a></li> <li><a href="about.html">GIỚI THIỆU</a></li> <li><a href="service.html">DỊCH VỤ</a></li> <li><a href="project.html">DỰ ÁN</a></li> <li><a href="contact.html">LIÊN LẠC</a></li> </ul> </div> </div> </div> <!-- <div id="slider" class="slider b-g-c-ccc p-r"> <div class="gcontain h-g-10 l-50-pc reprefix-12 "> <img src='images/slider1.png' width="960" height="400" alt=""/> </div> <div class="nav t-a-c"> <a class="active">1</a> <a>1</a> <a>1</a> <a>1</a> </div> </div>--> <!-- <div id="banner" class="banner b-g-c-blue"> </div>--> <div class="product-banner"> <div class="gcontain l-50-pc reprefix-12 "> <div class="title">Project - What we did?</div> </div> </div> <div class="main"> <div class="gcontain l-50-pc reprefix-12"> <div class="p-t-40"> <div class="grid_7"> <div class="nav_bar p-b-40"> <div class="title">PHÂN LOẠI</div> <ul> <li class="active"><a href="">EVENTS & MARKETING</a></li> <li><a href="">PRINTING</a></li> <li><a href="">DESIGN & BRANDING</a></li> <li><a href="">PRODUCTION</a></li> </ul> <!-- <div class="back m-t-32">BACK TO SERVICES</div>--> </div> <div class="intro"> <div class="title"><h2>THÔNG TIN LIÊN LẠC</h2></div> <ul class="onium"> <li class="active"><a href="">181/19, Hồng Lạc, P.10, Q.Tân Bình, TP. HCM</a></li> <li><a href="">PRINTING</a></li> <li><a href="">DESIGN & BRANDING</a></li> <li><a href="">PRODUCTION</a></li> </ul> </div> </div> <div class="grid_17"> <div class="intro prefix_1"> <div class="title"> <h2>EVENTS & MARKETING</h2> </div> <div class="grid_8 p-t-40"> <div class="projects p-r-20"> <a href="service_page.html"> <img width="300" height="172" src="images/projects_07.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-l-20"> <a href="service_page.html"> <img width="300" height="172" src="images/product1.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-r-20"> <a href="service_page.html"> <img width="300" height="172" src="images/pr2.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-l-20"> <a href="service_page.html"> <img width="300" height="172" src="images/pr3.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> </div> </div> </div> </div> </div> <div class="clear"></div> <div class="p-r"> <div class="gcontain l-50-pc reprefix-12 "> <div class="foot-line"></div> </div> </div> <div class="clear"></div> <div id="banner" class="footer"> </div>
0x6a
trunk/libraries/frontend/html/project.html
HTML
asf20
6,466
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Start work</title> <meta http-equiv="content-type" content="text/javascript;charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/grid.css"/> <link type="text/css" rel="stylesheet" href="css/frontend.styles.css"/> </head> <body> <div class="head"> <div class="first"> <div class="h-36 p-b-4 gcontain l-50-pc reprefix-12"> <div id="hotline" class="hotline p-t-8 p-b-8 p-l-32 l-h-20 grid_x p-r-8"> HOTLINE : <strong>0909 199 199 - (08) 6 2872 931</strong> </div> <div id="auth" class="auth p-t-8 p-l-32 p-b-8 p-r-8 l-h-20 grid_x f-r"> <a href="">Đăng ký</a> | <a href="">Đăng nhập</a> </div> </div> </div> <div class="second gcontain h-g-4 l-50-pc reprefix-12"> <div id="logo" class="grid_8 h-g-4"> <a href="start_home.html"> <img src="images/logo.png" alt=""/> </a> </div> <div id="nav" class="nav"> <ul> <li><a class="active" href="start_home.html">TRANG CHỦ</a></li> <li><a href="about.html">GIỚI THIỆU</a></li> <li><a href="service.html">DỊCH VỤ</a></li> <li><a href="project.html">DỰ ÁN</a></li> <li><a href="contact.html">LIÊN LẠC</a></li> </ul> </div> </div> </div> <!-- <div id="slider" class="slider b-g-c-ccc p-r"> <div class="gcontain h-g-10 l-50-pc reprefix-12 "> <img src='images/slider1.png' width="960" height="400" alt=""/> </div> <div class="nav t-a-c"> <a class="active">1</a> <a>1</a> <a>1</a> <a>1</a> </div> </div>--> <!-- <div id="banner" class="banner b-g-c-blue"> </div>--> <div class="service-banner"> <div class="gcontain l-50-pc reprefix-12 "> <div class="title">Service - What can we do for you?</div> </div> </div> <div class="main"> <div class="gcontain l-50-pc reprefix-12"> <div class="grid_12 p-t-40"> <div class="service p-r-20"> <a href="service_page.html"> <img width="460" height="200" src="images/services_01.png" alt=""/> <div class="title"> EVENTS & MARKETING <img class="p-a t-0 push_10" src="images/calendar_icon.png" alt=""/> </div> </a> </div> </div> <div class="grid_12 p-t-40"> <div class="service p-l-20"> <a href="service_page.html"> <img width="460" height="200" src="images/services_02.png" alt=""/> <div class="title"> PRINTING <img class="p-a t-0 push_10" src="images/print_icon.png" alt=""/> </div> </a> </div> </div> <div class="grid_12 p-t-40"> <div class="service p-r-20"> <a href="service_page.html"> <img width="460" height="200" src="images/services_03.png" alt=""/> <div class="title"> DESIGN <img class="p-a t-0 push_10" src="images/paint_icon.png" alt=""/> </div> </a> </div> </div> <div class="grid_12 p-t-40"> <div class="service p-l-20"> <a href="service_page.html"> <img width="460" height="200" src="images/services_04.png" alt=""/> <div class="title"> PRODUCTION <img class="p-a t-0 push_10" src="images/camera_icon.png" alt=""/> </div> </a> </div> </div> </div> </div> <div class="clear"></div> <div class="p-r"> <div class="gcontain l-50-pc reprefix-12 "> <div class="foot-line"></div> </div> </div> <div class="clear"></div> <div id="banner" class="footer"> </div>
0x6a
trunk/libraries/frontend/html/service.html
HTML
asf20
5,236
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Start work</title> <meta http-equiv="content-type" content="text/javascript;charset=UTF-8" /> <link type="text/css" rel="stylesheet" href="css/grid.css"/> <link type="text/css" rel="stylesheet" href="css/frontend.styles.css"/> <link type="text/css" rel="stylesheet" href="css/typography.css"/> </head> <body> <div class="head"> <div class="first"> <div class="h-36 p-b-4 gcontain l-50-pc reprefix-12"> <div id="hotline" class="hotline p-t-8 p-b-8 p-l-32 l-h-20 grid_x p-r-8"> HOTLINE : <strong>0909 199 199 - (08) 6 2872 931</strong> </div> <div id="auth" class="auth p-t-8 p-l-32 p-b-8 p-r-8 l-h-20 grid_x f-r"> <a href="">Đăng ký</a> | <a href="">Đăng nhập</a> </div> </div> </div> <div class="second gcontain h-g-4 l-50-pc reprefix-12"> <div id="logo" class="grid_8 h-g-4"> <a href="start_home.html"> <img src="images/logo.png" alt=""/> </a> </div> <div id="nav" class="nav"> <ul> <li><a class="active" href="start_home.html">TRANG CHỦ</a></li> <li><a href="about.html">GIỚI THIỆU</a></li> <li><a href="service.html">DỊCH VỤ</a></li> <li><a href="project.html">DỰ ÁN</a></li> <li><a href="contact.html">LIÊN LẠC</a></li> </ul> </div> </div> </div> <!-- <div id="slider" class="slider b-g-c-ccc p-r"> <div class="gcontain h-g-10 l-50-pc reprefix-12 "> <img src='images/slider1.png' width="960" height="400" alt=""/> </div> <div class="nav t-a-c"> <a class="active">1</a> <a>1</a> <a>1</a> <a>1</a> </div> </div>--> <!-- <div id="banner" class="banner b-g-c-blue"> </div>--> <div class="product-banner"> <div class="gcontain l-50-pc reprefix-12 "> <div class="title">About Us - Get to know us better?</div> </div> </div> <div class="main"> <div class="gcontain l-50-pc reprefix-12"> <div class="p-t-40"> <div class="grid_7"> <div class="intro"> <div class="title"><h2>Danh mục</h2></div> <ul> <li class="aa"><a href="">Hồng Lạc, P.10, Q.Tân Bình, TP. HCM</a></li> <li class="ab"><a href="">PRINTING</a></li> <li class="ac"><a href="">DESIGN & BRANDING</a></li> <li class="ad"><a href="">PRODUCTION</a></li> </ul> </div> </div> <div class="grid_17"> <div class="intro prefix_1"> <div class="title"> <h2>Activities</h2> </div> <div class="t-a-j p-b-40 p-t-40"> <img src='images/image0.png' alt=""/><br/><br/><br/> Giá xăng giảm 410-420 đồng một lít<br/> Mức giảm giá xăng dầu các doanh nghiệp áp dụng chỉ nhỉnh hơn vài đồng so với yêu cầu tối thiểu mà Liên bộ Tài chính - Công Thương đưa ra chiều 18/4.<br/> > Chủ tịch Petrolimex: 'Nhiều cơ hội giảm giá xăng dầu'<br/> > Lời hứa minh bạch sau cú sốc giá xăng dầu<br/> Giá xăng giảm lần thứ hai trong tháng tư. Nhưng tính cả hai lần giảm vẫn chưa bằng lần tăng cuối tháng 3. Ảnh: Hoàng Hà Bộ Tài chính phát đi thông cáo báo chí vào cuối chiều 18/4, một ngày trước kỳ nghỉ lễ Giỗ Tổ Hùng Vương 10/3 âm lịch. Theo đó, cùng với việc tăng thuế nhập khẩu, Liên Bộ Tài chính Công Thương yêu cầu các doanh nghiệp xăng dầu phải giảm giá bán lẻ không muộn hơn 19h ngày<br/> Quy đổi theo tỷ giá đôla Mỹ của Vietcombank chiều 18/4, một lít xăng RON92 nhập khẩu có giá 15.091 đồng, chưa bao gồm các loại thuế, phí. Nếu tính thuế nhập khẩu (14%), thuế tiêu thụ đặc biệt (10%) và VAT (10%), giá lên đến gần 20.820 đồng một lít. Trong công thức tính giá bán lẻ xăng dầu, các doanh nghiệp còn tính thêm lợi nhuận định mức, phí xăng dầu, trích quỹ bình ổn.<br/> Bộ cho biết giá xăng dầu thế giới kể từ sau ngày giảm giá bán lẻ trong nước gần nhất (ngày 9/4) tiếp tục biến động theo xu hướng giảm. Bình quân 30 ngày tính đến ngày 18/4, giá xăng RON 92 là 114,67 USD một thùng; dầu diezen 0,05S có giá 119,42 USD; dầu hỏa 118,90 USD một thùng và dầu mazut 180 cst: 625,18 USD một tấn.<br/> Trước diễn biến này, Bộ Tài chính quyết định khôi phục một bước thuế suất thuế nhập khẩu xăng, dầu sau khi duy trì từ suốt 11/9/2012 đến nay. Theo đó thuế nhập khẩu các mặt hàng đồng loạt tăng thêm 2%, trong đó xăng lên 14%; dầu diezen lên 10%, dầu hỏa 12%, dầu mazut 12%.<br/> Theo lý giải của Bộ Tài chính, thuế suất thuế nhập khẩu nhiên liệu đều thấp hơn barem quy định nhằm giúp bình ổn kinh tế vĩ mô, bình ổn giá xăng dầu khi thế giới lên cao. Barem thuế với xăng là 20%, diezen 15%, dầu hỏa 20% và mazut là 15%.<br/> Biểu giá bán lẻ xăng của Petrolimex trước khi điều chỉnh:<br/> </div> <div class="title"> <h2>EVENTS & MARKETING</h2> </div> <div class="grid_8 p-t-40"> <div class="projects p-r-20"> <a href="service_page.html"> <img width="300" height="172" src="images/projects_07.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-l-20"> <a href="service_page.html"> <img width="300" height="172" src="images/product1.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-r-20"> <a href="service_page.html"> <img width="300" height="172" src="images/pr2.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> <div class="grid_8 p-t-40"> <div class="projects p-l-20"> <a href="service_page.html"> <img width="300" height="172" src="images/pr3.png" alt=""/> <h4>EVENTS & MARKETING</h4> </a> </div> </div> </div> </div> </div> </div> </div> <div class="clear"></div> <div class="p-r"> <div class="gcontain l-50-pc reprefix-12 "> <div class="foot-line"></div> </div> </div> <div class="clear"></div> <div id="banner" class="footer"> </div>
0x6a
trunk/libraries/frontend/html/about.html
HTML
asf20
8,866