This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .mobile-hide { | |
| visibility: hidden; | |
| clip: rect(0px, 0px, 0px, 0px); | |
| position: absolute; | |
| display: none; | |
| } | |
| @media only screen and (min-width: 800px) { | |
| .mobile-hide { | |
| visibility: visible; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .stitched { | |
| padding: 20px; | |
| margin: 10px; | |
| background: #67bbab; | |
| color: #fff; | |
| font-size: 21px; | |
| font-weight: bold; | |
| line-height: 1.3em; | |
| border: 2px dashed #fff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } | |
| /* Smartphones (landscape) ----------- */ | |
| @media only screen | |
| and (min-width : 321px) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: Open Sans; | |
| } | |
| h1 { | |
| text-align: center; | |
| } | |
| #title { | |
| text-decoration: underline; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery( function($) { | |
| $( "#accordion:nth-child(1n)" ).accordion({ | |
| collapsible: true, | |
| active: false, | |
| heightStyle: "content" | |
| }); | |
| } ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#button1').click(function() { | |
| var url = "http:www.your-url.com?ID=" + Math.random(); //create random number | |
| setTimeout(function() { | |
| $("#elementName").load(url+" #elementName>*",""); | |
| }, 1000); //wait one second to run function | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //using async loading | |
| // Only do anything if jQuery isn't defined | |
| if (typeof jQuery == 'undefined') { | |
| if (typeof $ == 'function') { | |
| // warning, global var | |
| thisPageUsingOtherJSLibrary = true; | |
| } | |
| function getScript(url, success) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
| $(document).keydown(function(e) { | |
| kkeys.push( e.keyCode ); | |
| if ( kkeys.toString().indexOf( konami ) >= 0 ) { | |
| $(document).unbind('keydown',arguments.callee); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#elm').hover( | |
| function(){ $(this).addClass('hover') }, | |
| function(){ $(this).removeClass('hover') } | |
| ) |
NewerOlder