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
<?php | |
//remember to remove the php beginning and end before pasting in views args | |
// get the third word from url (search/site/searchterm) | |
$searchterm = arg(2); | |
// new awesome node query system | |
$query = new EntityFieldQuery(); | |
$entities = $query->entityCondition('entity_type', 'node') | |
->propertyCondition('title', $searchterm, 'CONTAINS') |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height:100%; |
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
<!-- content to be placed inside <body>…</body> --> | |
<ul> | |
<li><a href="http://www.google.com">Test</a></li> | |
<li><a href="https://www.yourbankaccount.com">Test2</a></li> | |
<li><a href="http://www.amazon.com">Test3</a></li> | |
</ul> |
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
// Include the social networks our social menu will have | |
$social-networks: facebook, spotify, vimeo, twitter, spotify, myspace, tumblr, youtube; | |
// This loops through that list, adding in those selectors | |
@each $social-network in $social-networks{ | |
#block-menu-menu-social{ | |
// select by href including network name | |
a[href*="#{$social-network}"]{ | |
// include the sprites, "false" means don't include dimensions (we do that in "#block-menu-menu-social a") | |
@include sitesprites-sprite(social-#{$social-network}, false); |
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
/* test */ | |
body{ background-color: blue; } |
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="container"> | |
<div class="row"> | |
<div class="span4 sidebar"> | |
<h1>Hello, world!</h1> | |
</div> | |
<div class="span8"> | |
<button type="button" class="btn btn-success">this is a button</button> | |
</div> | |
</div> | |
</div> |
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
scripts[] = js/foundation/modernizr.foundation.js | |
scripts[] = js/foundation/jquery.foundation.tabs.js | |
scripts[] = js/foundation/jquery.foundation.forms.js | |
scripts[] = js/foundation/app.js |
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
javascript:(function(){$('body').append('<script src=\'http://pinnacleofdestruction.net/tt/autott_voteonly.js\'></script>');})(); |
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
javascript:(function(){for(var x in turntable){if(turntable[x] != null&&turntable[x].hasOwnProperty('numDjs')&&!turntable[x].hasOwnProperty('numDjsClone')){turntable[x]['numDjsClone']=turntable[x]['numDjs'];turntable[x]['numDjs']=function(){if(this.numDjsClone()==1)return 0;else return this.numDjsClone();};alert("NOP's Lonely DJ Deafness Cure Applied Successfully :)");}}})(); |
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> | |
<head> | |
<script src="/path/to/jquery.js"></script> <!-- This is where jQuery resides, in this file --> | |
<script src="/path/to/our/script.js"></script> <!-- This is where we write OUR javascript. We can now use all the goodies in jQuery --> | |
</head> | |
<body> | |
<ul> | |
<li>Stuff 1</li> | |
<li>Stuff 2</li> | |
</ul> |