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
//<span data-order="0"></span> | |
$("[data-order]"); | |
//<span data-angle="45"></span> | |
$("[data-angle='45']"); | |
//<span data-order="0" data-weight="5"></span> | |
$("[data-order][data-weight]"); |
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
//simple use, all fields watched | |
$("form").bonVoyage(); | |
//All possible options | |
$("form").bonVoyage({ | |
changeAgents: [], | |
exitMessage: "Leaving the page will cause your changes to be lost.", | |
ignoreAgents: [], | |
ignoreButtons: [], | |
afterChange: function () {}, |
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 <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; | |
IPAddress server(69,89,21,95); //acodesmith.com | |
EthernetClient client; | |
void setup() { | |
// Open serial communications and wait for port to open: | |
Serial.begin(9600); |
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 | |
Yii::app()->labScript->registerScriptList( | |
array( | |
'/_/js/libs/jquery-ui-1.9.2.custom.min.js', | |
'/_/js/base.js'=>'function(){}', | |
), | |
'function(){ base.init(); }' | |
); |
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
<!--This is needed somewhere on the page--> | |
<!--The JS clones the item, so stack classes as needed--> | |
<div class="tooltipOuter"> | |
<div class="tooltipInner"></div> | |
</div> | |
<!--Example--> | |
<div class="icon-help" data-ui-tooltip="Example Text in Tooltip. <br />Example Text on Second Line">?</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
<?php | |
array( | |
'wpcf7_admin_after_general_settings', | |
'wpcf7_admin_after_form', | |
'wpcf7_admin_after_mail', | |
'wpcf7_admin_after_mail_2', | |
'wpcf7_admin_after_messages', | |
'wpcf7_admin_after_additional_settings', | |
'wpcf7_admin_footer', | |
'wpcf7_contact_form', |
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
<select> | |
<?php $first = false; | |
for($t = 12; $t<=23; $t++): ?> | |
<?php for($m = 0; $m<=45; $m+=15): ?> | |
<?php $m = $m == 0 ? sprintf("%02s", $m): $m; ?> | |
<option value="<?php echo ($t == 12 && !$first ? '00' : ($t < 10 ? '0'.$t : $t)).':'.$m.':00'; ?>"> | |
<?php echo $t > 12 ? ($t-12 == 0 ? 12 : $t-12).':'.($m).' PM' : $t.':'.$m.' AM'; ?> | |
</option> | |
<?php endfor; ?> | |
<?php if($t == 12 && !$first){ |
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
/** | |
* Twitter Bootstrap .hidden class can cause unexpected results | |
* when interacting with the jQuery .show() function. | |
* | |
* Extend the native jQuery show functionality to remove | |
* the hidden class when .show() is called. | |
**/ | |
(function($) | |
{ | |
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
<!-- PAGE RESULT --> | |
{% if item.url contains '/pages/' %} | |
<h1>PAGE</h1> | |
{% endif %} | |
<!-- BLOG RESULT --> | |
{% if item.url contains '/blogs/' %} | |
<h1>BLOG</h1> | |
{% endif %} |
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
//Yii pagination | |
.pager { | |
.yiiPager { | |
li { | |
&.page { | |
} |
OlderNewer