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
javascript:(function() {var css="body:before { content: ''; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAABCAYAAABJwyn/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGNzdGMTE3NDA3MjA2ODExODA4M0VCODNDNjJCRDdDMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxRDI5NUJBMkJFOUYxMUUzQjg4QUJDRDZERENEOTdFRiIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxRDI5NUJBMUJFOUYxMUUzQjg4QUJDRDZEREN |
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
$.fn.tooltip = function( method ) { | |
// decide what to do next... | |
// if we have a methods[method] then let's try to invoke it | |
if ( methods[method] ) { | |
return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 )); | |
// this is an object so we should try to pass it as options | |
} else if ( typeof method === 'object' || ! method ) { | |
return methods.init.apply( this, arguments ); |
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
a { | |
&:after { | |
content: attr(title); | |
color: transparent; | |
visibility: hidden; | |
font-weight: bold; | |
overflow: hidden; | |
display: block; | |
height: 1px; | |
} |
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
$namespase: 'text'; | |
.#{$namespase} { | |
display: inline; | |
&-red { | |
color: red; | |
} | |
&-bold { |
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
$vocab_machine_name = 'name'; | |
$vacab = taxonomy_vocabulary_machine_name_load($vocab_machine_name); | |
if (isset($vacab->vid)) { | |
$vid = $vacab->vid; | |
$terms = taxonomy_get_term_by_name('parent', $vocab_machine_name); | |
$parent_term = array_pop($terms); | |
// Create terms what needed. |
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
/** | |
* A plugin to add labels for any kind of supported elements. | |
* | |
* @param settings | |
* @returns {jQuery} | |
*/ | |
$.fn.createLabels = function(settings) { | |
var idAttr, | |
result, |
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
// ---- | |
// Sass (v3.4.14) | |
// Compass (v1.0.3) | |
// Bourbon (v4.2.3) | |
// Modular Scale (v2.1.1) | |
// ---- | |
@import "modular-scale" | |
@import bourbon/bourbon |
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
(function () { | |
'use strict'; | |
function hasOwnProperty(obj, prop) { | |
var proto = obj.__proto__ || obj.constructor.prototype; | |
return (prop in obj) && (!(prop in proto) || proto[prop] !== obj[prop]); | |
} | |
var Button = function (settings) { |
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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
@for $i from 1 through 6 { | |
&.front:nth-child(#{$i}), &.back:nth-child(#{$i}) { | |
$brick-bg: '../image/brick' + random(6) + '.jpg'; | |
background-image: url($brick-bg); | |
background-size: 100% 100%; | |
} |
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
<div class="block block-1-1"> | |
<img src="//placehold.it/50x50"> | |
</div> | |
<div class="block block-1-2"> | |
<img src="//placehold.it/50x50"> | |
</div> | |
<div class="block block-1-3"> | |
<img src="//placehold.it/50x50"> | |
</div> | |
<div class="block block-2-1"> |
OlderNewer