Skip to content

Instantly share code, notes, and snippets.

[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] ========== INIT 555cc4a378e56 2.5.4 ==========
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] checkForMainQuery(): It is the main query
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] ========== END 555cc4a378e56 ==========
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:12][notice][555cc4a482e1d]
[2015-20-05 6:30:12][notice][555cc4a482e1d] ========== INIT 555cc4a482e1d 2.5.4 ==========
<script type="text/javascript">
curl(["domReady!", "QUnit"], function (dom, QUnit) {
// Pause QUnit so you know that Firebase is connected
QUnit.config.autostart = false;
})
.next(["Firebase"])
.next(["QUnit",
"jquery",
"utilsHelpers",
"FirebaseManager",
ko.bindingHandlers.operationsAsChecked = {
init: function (element, valueAccessor, allBindings) {
// Guest does nothing - disable
var value = ko.utils.unwrapObservable(valueAccessor());
var observable = valueAccessor();
var guestBtn = $("button", element);
guestBtn.on("click", function () {
var checkboxes = $("input", element);
if (observable().indexOf("Guest") == -1) {
@dhrobbins
dhrobbins / Bootstratp Caret Alters
Created October 17, 2013 13:09
CSS for changing / creating carets in Bootstrap. Found it on Stackoverflow - http://stackoverflow.com/questions/10801325/changing-bootstrap-caretcolor-and-position
body {padding: 10px;}
.caret {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000000;
display: inline-block;
height: 0;
opacity: 0.3;
vertical-align: top;
width: 0;