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
// from https://github.com/SteveSanderson/knockout/wiki/Bindings---class | |
// addresses https://github.com/SteveSanderson/knockout/issues/233 | |
// be careful of using the attr binding -- it has issues with iOS and quotes | |
// instead, use this to bind to the class attribute | |
ko.bindingHandlers['class'] = { | |
'update': function (element, valueAccessor) { | |
if (element['__ko__previousClassValue__']) { | |
$(element).removeClass(element['__ko__previousClassValue__']); | |
} | |
var value = ko.utils.unwrapObservable(valueAccessor()); |
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
function hideAddressBar() | |
{ | |
if(!window.location.hash) | |
{ | |
if(document.height < window.outerHeight) | |
{ | |
document.body.style.height = (window.outerHeight + 50) + 'px'; | |
} | |
setTimeout( function(){ window.scrollTo(0, 1); }, 50 ); |
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
// knockout-jquery-ui-widget.js | |
// Copyright (c) 2011, Planapple, Inc. | |
// License: MIT (http://www.opensource.org/licenses/mit-license.php) | |
// | |
// Knockout binding for jQuery UI widgets | |
// | |
// Examples: | |
// <input type="submit" value="OK" data-bind='jqueryui: "button"' /> | |
// | |
// Attaches a jQuery UI button widget to this button, with default options. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>One Graph</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<script type="text/javascript" src="simple-graph.js"></script> | |
<style type="text/css"> | |
body { font: 13px sans-serif; } | |
rect { fill: none; } |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
float: left; | |
border: solid 1px #aaa; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
svg { | |
float: left; | |
border: solid 1px #aaa; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="http://cdn.quilljs.com/1.2.4/quill.snow.css" rel="stylesheet"> | |
<link href="http://cdn.quilljs.com/1.2.4/quill.bubble.css" rel="stylesheet"> | |
<style id="jsbin-css"> |
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
Online-First Realtime Doc Viewer | |
restart -> Loading | |
Loading | |
Connecting to Remote Doc | |
disconnect while loading -> Load Failed | |
Preparing Auth | |
Identifying User | |
got user token -> Verifying User | |
no user token -> Login |
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
Doc Viewer& | |
Mode | |
No Mode Set | |
Local Only | |
Remote Only | |
Local and Remote*& | |
go local only -> Local Only | |
go remote only -> Remote Only |
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
Doc Viewer& | |
Mode | |
No Mode Set | |
Local Only | |
Remote Only | |
Local and Remote*& | |
go local only -> Local Only | |
go remote only -> Remote Only |
OlderNewer