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
| element.style.cssText = 'font-size:12px;text-indent:0'; | |
| element.style.cssText = 'font-size:14px;text-indent:5px'; |
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 script = document.createElement('script'); | |
| script.src = "myobject.js"; | |
| script.text = "myobject.init()"; | |
| document.getElementsByTagName('head')[0].appendChild(script); |
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 | |
| allPara = document.getElementsByTagName('p'), | |
| collectTemp = []; | |
| for ( var i = 0; i < allPara.length; i++ ) | |
| { | |
| collectTemp[collectTemp.length] = allPara[i]; | |
| } | |
| for ( i = 0; i < collectTemp.length; i++ ) | |
| { | |
| collectTemp.appendChild( document.createTextNode(i) ); |
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
| YUI().use('json',function(Y){ | |
| function clone( obj ) | |
| { | |
| return Y.JSON.parse( Y.JSON.stringify( obj ) ); | |
| } | |
| }); |
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
| <script src="benchmark.js"></script> | |
| <h2>classical inheritance vs. closures</h2> | |
| <p> | |
| <span id="test">test</span> | |
| </p> | |
| <script type="text/javascript"> | |
| // Closure implementation |
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
| <h1 id="branding"> | |
| <img src="/images/logo-print.jpg" alt="Twinings of London" /> | |
| </h1> |
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
| {exp:weblog:entries weblog="services" | |
| disable="categories|category_fields|member_data|pagination|trackbacks"} | |
| {exp:query sql="SELECT @row := 0"}{/exp:query} | |
| {exp:query sql="SELECT @row := @row + 1 AS `query_count` | |
| `project`.`title` AS `project_name` | |
| FROM `exp_weblog_titles` AS `project` | |
| INNER JOIN `exp_relationships` AS `service_projects` ON `project`.`entry_id` = `service_projects`.`rel_parent_id` | |
| WHERE `project`.`weblog_id` = 13 | |
| AND `service_projects`.`rel_child_id` = {entry_id} | |
| LIMIT 10"} |
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
| @font-face { | |
| font-family: 'Comfortaa'; | |
| font-weight: normal; | |
| src: url('fonts/Comfortaa_Regular.eot'); | |
| src: local('Comfortaa'), | |
| url('fonts/Comfortaa_Regular.ttf') format('truetype'), | |
| url('fonts/Comfortaa_Regular.otf') format('opentype'), | |
| url('fonts/Comfortaa_Regular.svg#mysvgid') format('svg'); | |
| } |
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
| eCSStender.addMethod('findBySelector',Sizzle); |
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
| /* --------------------------------- | |
| * Core Stylesheet | |
| * Created by Easy! Designs, LLC | |
| * http://easy-designs.net | |
| * --------------------------------- */ | |
| {embed="styles/reset"} | |
| {embed="styles/typography"} |