This file contains hidden or 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 ($) { | |
'use strict'; | |
var getUnqueuedOpts = function (opts) { | |
return { | |
queue: false, | |
duration: opts.duration, | |
easing: opts.easing | |
}; | |
}; | |
$.fn.showDown = function (opts) { |
This file contains hidden or 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 ($) { | |
'use strict'; | |
$.fn.bsPeekabooLabel = function () { | |
var input = $(this), | |
control = input.closest('[class*="col-"]'), | |
label = control.siblings('.control-label'), | |
show = false, | |
place = function (d) { | |
var m; | |
if ($(control).css('float') === 'left') { |
This file contains hidden or 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 ($) { | |
'use strict'; | |
$.fn.wmTiles = function () { | |
var container = $(this), | |
tiles = container.children(), | |
arrange = function () { | |
var places = [{ | |
t: 0, | |
l: 0, | |
w: container.width() |
This file contains hidden or 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 timeAgo(time) { | |
'use strict'; | |
var second = 1000, | |
minute = second * 60, | |
hour = minute * 60, | |
day = hour * 24, | |
month = day * 30, | |
year = day * 365, | |
elapsed = Date.now() - time, | |
getString = function (value, unit) { |
This file contains hidden or 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
*[data-blur-background] { | |
position: relative; | |
overflow: hidden; | |
z-index: 1; | |
} | |
*[data-blur-background]::before, *[data-blur-background]::after { | |
position: absolute; | |
display: block; | |
z-index: -1; | |
content: ' '; |
This file contains hidden or 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
var app = { | |
url: "ws://" + document.location.hostname | |
}; | |
app.socket = new WebSocket(app.url + ":8082"); | |
app | |
.socket | |
.addEventListener('message', function(e) { | |
var message = JSON.parse(e.data); | |
var event = new CustomEvent(message.type); |
This file contains hidden or 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
export function paramsString(args) { | |
return Object | |
.keys(args) | |
.map(k => `${encodeURIComponent(k)}=${encodeURIComponent(args[k])}`) | |
.join('&'); | |
} | |
// localStorage.clear(); | |
export class APIRequest { |
This file contains hidden or 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
@import url('https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css'); | |
body { | |
background-color: #212121; | |
font-family: HelveticaNeue, 'Helvetica Neue', 'Lucida Grande', Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
} | |
.App { |
This file contains hidden or 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
.Group-item, | |
.Group-item.ui, | |
.Group-item.ui:first-child { | |
display: block; | |
margin-top: 1em; | |
} | |
.Group-item-enter.Group-item-enter-active { | |
transition: opacity 300ms ease-in, margin 300ms ease-out; | |
} |
OlderNewer