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
| <!-- | |
| f your web site needs oldIE support, and we expect most sites will need it for at least another year or two, | |
| you can use IE conditional comments to include version 1.9 only when visitors are using oldIE: | |
| Reference: https://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond | |
| --> | |
| <!--[if (!IE)|(gt IE 8)]><!--> | |
| <script src="js/jquery-2.1.3.min.js"></script> | |
| <!--<![endif]--> |
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
| <!--[if lt IE 9]> | |
| <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | |
| <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | |
| <![endif]--> |
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
| * This example causes the browser to reload the document every two seconds. | |
| <meta http-equiv="refresh" content="2"> | |
| * This example sets the character set for the document. | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| * This example disables theme support for the document. |
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
| Telephone link: | |
| (Reference: http://code.tutsplus.com/tutorials/mobile-web-quick-tip-phone-number-links--mobile-7667) | |
| Android and iOS automatically detect phone numbers with specific format. | |
| (555) 555-5555 (Android + iPhone) | |
| 555 555 5555 (Android + iPhone) | |
| 555.555.5555 (Android + iPhone) | |
| <!-- Embedded within normal page text --> | |
| <p>If you'd like to talk, <a href="tel:5555555">Call Me!</a></p> | |
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
| select { | |
| -webkit-appearance: none; | |
| -moz-appearance: none; | |
| appearance: none; | |
| &::-ms-expand { display: none; } | |
| } |
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
| Array.prototype.remove = function(from, to) { | |
| var rest = this.slice((to || from) + 1 || this.length); | |
| this.length = from < 0 ? this.length + from : from; | |
| return this.push.apply(this, rest); | |
| }; |
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 strTitle = document.title, | |
| iIndex = 0; | |
| function animateTitle(){ | |
| document.title= strTitle.substring(iIndex, iIndex + 145); | |
| if(iIndex == strTitle.length-1){ iIndex = 0;} | |
| else iIndex++; | |
| setTimeout("animateTitle()",200); | |
| } | |
| animateTitle(); |
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
| /** | |
| * Syntax: window.open(URL,name,specs,replace) | |
| * Reference: http://www.w3schools.com/jsref/met_win_open.asp | |
| */ | |
| var URL = 'http://w3schools.com'; | |
| window.open( URL, "wo_map_console","height=650,width=800,toolbar=no,statusbar=no,scrollbars=yes").focus(); |
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
| /** | |
| * Toggle two classes | |
| */ | |
| $("#toggler").toggleClass("lightOn lightOff"); | |
| /** | |
| * Wrap an HTML structure around each element in the set of matched elements | |
| * Reference: http://api.jquery.com/wrap | |
| */ | |
| $( ".inner" ).wrap( "<div class='new'></div>" ); |
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
| <?php | |
| $homepage = file_get_contents('http://www.w3schools.com/games/game_canvas.asp'); | |
| $str=str_replace("href=\"", "href=\"http://mysite.com", $homepage ); | |
| echo $str; |