This file contains 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
$("#second-reason").css({"left":"0px", "position":"relative", "top":"0px"}); | |
$("#second-reason").detach().insertBefore("#first-reason"); |
This file contains 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
$(".companies").css({"left":"0px", "position":"relative", "top":"0px"}); | |
$(".companies").detach().insertBefore(".reasons"); |
This file contains 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
lacalize: { | |
germany: { | |
options: { | |
exclude_files: ['website/usa/pages/**/*.html'], | |
exclude_yfm: 'germany' | |
} | |
source: 'website/usa', | |
dest: 'website/germany' | |
}, | |
france: { |
This file contains 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
<html> | |
<body> | |
<!-- the {{variable}} would not need to be translated, but the p tag string would need to be. --> | |
<script id="template"> | |
<h1>{{variable}}</h1> | |
<p>This content would need to be translated.</p> | |
</script> | |
</body> | |
</html> |
This file contains 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
$('form :input').each(function(index, elem) { | |
var eId = $(elem).attr('id'); | |
var label = null; | |
if (eId && (label = $(elem).parents('form').find('label[for='+eId+']')).length === 1) { | |
$(elem).attr('placeholder', $(label).html()); |
This file contains 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
/^http\:\/\/t\.co\//.test(document.referrer); |
This file contains 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
<div class="clear code-block"> | |
<pre class="brush: css"> | |
body, html {background: #000; font-size: 12px;} | |
#container {width: 810px; margin: 0 auto 0 auto;} | |
#notice {color: #fff; font-weight: bold; font-size: 15px; font-style: italic;} | |
h1 {font-size: 38px; line-height: 45px;} | |
h1 span {font-size: 16px; color: #ff0084;} | |
h1 a:hover span {color: #fff;} | |
#tut-info {width: 810px; margin: 0 0 20px 0;} | |
#tut-info a {float: left; display: block; background: #fff; font-size: 20px; padding: 20px 20px; font-weight: bold; margin: 0 15px 0 0;} |
This file contains 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
<div class="clear code-block"> | |
<pre class="brush: xml"> | |
<div id="container"> | |
<h1><a>DEMO: Use the Flickr API, JavaScript (jQuery), AJAX and JSON to Build a Photo Wall <span>by Kyle Rush</span></a></h1> | |
<a id="a-link" href="http://www.flickr.com/photos/kylerush/">Click Here to See My Flickr Photos</a> | |
<div id="tut-info" class="clearfix"> | |
<a>View Tutorial >></a> | |
<a>How to Use the Flickr API >></a> | |
<a href="http://www.kylerush.net">kylerush.net >></a> |
NewerOlder