Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Пример запроса | |
var data = new FormData(); | |
// Вы готовы сдавать кровь на безвозмездной основе? (обязательно к заполнению) | |
// ответы: да, конечно/нет | |
// на сервер посылается true/false | |
// если пользователь выбрал "нет" - форма не должна сабмититься | |
// на сайте мы пишем буквально следующее: | |
// Извините, мы занимаемся поиском безвозмездных доноров. Спасибо. Всего доброго! | |
data.append("accept", "true"); |
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
{ | |
"070fbff65360ddb165d0c67d5a9272ed": { | |
"set": "f51bd13ffdefe9d8dd81032a80ab3bba", | |
"class": "location", | |
"entity": "ae146c83a604b2e376690bf89bed1f34", | |
"start_offset": 686, | |
"end_offset": 5 | |
}, | |
"2266a187a590b4a8d28462f5136c4550": { | |
"set": "f51bd13ffdefe9d8dd81032a80ab3bba", |
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
'use strict'; | |
var tape = require('tape'); | |
var inBrowser = require('../util/inBrowser'); | |
var platform = require('../util/platform'); | |
var DefaultDOMElement = require('../ui/DefaultDOMElement'); | |
var nextTick = process.nextTick; | |
var harness = tape.createHarness(); | |
var results = harness._results; |
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
#!/bin/bash | |
set -e | |
branch=jsdoc | |
giturl=https://github.com/substance/substance.git | |
remoteurl=https://github.com/substance/docs.git | |
source=/tmp/substance | |
build=/tmp/substance/dist/doc | |
# Check to see if repo exists. If not, git clone it |
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
/** | |
* Select2 | |
* | |
* Renders Select2 - jQuery based replacement for select boxes | |
* | |
* Simply pass a 'config' object on your schema, with any options to pass into Select2. | |
* See http://ivaynberg.github.com/select2/#documentation | |
*/ | |
Backbone.Form.editors.Select2Rel = Backbone.Form.editors.Base.extend({ |
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
/** | |
* SELECT2 | |
* | |
* Renders Select2 - jQuery based replacement for select boxes | |
* | |
* Requires an 'options.values' value on the schema. | |
* Can be an array of options, a function that calls back with the array of options, a string of HTML | |
* or a Backbone collection. If a collection, the models must implement a toString() method | |
*/ | |
Backbone.Form.editors.Select2 = Backbone.Form.editors.Base.extend({ |
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
var D3Layer; | |
D3Layer = (function() { | |
function D3Layer(map, points) { | |
var _this = this; | |
this.map = map; | |
this.enabled = true; | |
this.svg = d3.select(this.map.parent).append('svg').attr('class', 'd3layer'); | |
this.heat = d3.select(this.map.parent).append('div').attr('class', 'd3layer heatmap'); |