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 content"> | |
<?php | |
$devices_table = get_device_overview_data(); | |
build_device_table($devices_table); | |
?> | |
</div> <!-- .cotnainer.content --> | |
//or, more significantly: |
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
<article>:D</article> |
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
//Doing columns better thant the Greeks OR the Romans | |
// There are no required variables, but someone can pass how many columns in the | |
// grid (that they can optionally determine with columnPX and gutterPX) they want | |
// an element to span. This means we can generate infinite grid systems with one mixin. | |
@mixin grid_builder($colSpan: 6, $columnPx: 73, $gutterPx: 15){ | |
//Calculate the width of the element | |
$elementWidth: ($columnPx * $colSpan) + ($gutterPx * ($colSpan - 1)); | |
//inline-block to preserve the height in the browser |
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
// ----------------------------------------------------------------------------- | |
/* Shame CSS */ | |
// This is not a dumping ground. It is a staging area for hacks that are | |
// intended to be fixed and resolved so as not to sully our | |
// production-ready codebase. Hacks are necessary, but they are not | |
// permanent, nor are they acceptable long-term. You are not done when | |
// you've moved your selector and rules here. | |
// This is not intended to be an easy fix, or a simple way out. You will | |
// spend time writing out your shame, and you will make it known that |
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
$parentString = ''; | |
$parentString .= ( $menu['is_current'] ) | |
? 'is_current ' | |
: ''; | |
$parentString .= empty( $subMenu ) | |
? '' | |
: 'is_parent '; | |
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
<dl> | |
<div class="li"> | |
<dt>FA Question</dt> | |
<dd>Definition here</dd> | |
</div> | |
</dl> |
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
/** | |
* Functionality for capturing a command + shift + click | |
* Note: does not work for the key you have mapped for context menu | |
*/ | |
var cmdShiftClick = { | |
//set an object property for holding shift | |
isShift : false, | |
//set another for holding command or control | |
isCtrl : false, | |
init : 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
<div class="modal_form_field modal_provision_cores double_wide" style="display: block;"> | |
<h4 class="label" data-for="provision_cores">Cores: <span>22</span></h4> | |
<h4 class="label" data-for="provision_ram">RAM: <span>22</span></h4> | |
<div class="provision_cores slide_input" id="provision_cores" data-min="1" data-max="11" data-step="1" data-value="1"> | |
<div class="fill_line"></div> | |
<div class="slide_input_cursor" style="margin-left: 190px;"></div> | |
</div> | |
<div class="provision_ram slide_input" id="provision_ram" data-min="2" data-max="22" data-step="2" data-value="2"> |
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
// I'm talking something like this: | |
if( !get_option() ) echo 'hello'; | |
// There's no option value, but it doesn't echo hello becuase the return value isn't false. | |
// In order to echo hello, I have to write something akin to: | |
if( get_option() != '' ) echo 'hello'; |
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
$('.notification_queue').on( | |
{ | |
mouseenter: function(e){ | |
tooltipHandler.toggle(e); | |
}, | |
mouseleave: function(e){ | |
tooltipHandler.toggle(e); | |
} | |
}, | |
'.notification_actions i' |
OlderNewer