Skip to content

Instantly share code, notes, and snippets.

Avatar

Artem Svirskyi artemsvirskyi

View GitHub Profile
View values.js
$scope.paymentOptions = [
{name: "Regular user - first purchase", value: "upgrade"},
{name: "Regular user - add more players", value: "add.players"},
{name: "New Partner", value: "new.partner"},
{name: "New EDU Yearly Subscription", value: "new.edu"},
{name: "Templates ", value: "templates"},
{name: "Service", value: "service"},
{name: "Integration", value: "integration"},
];
View route2.js
{
name: "Хобот автобан",
distance: 10000, // в метрах
elevation: 1000, // в метрах
bike: ["MTB", "Highway"],
cover: {
"asphalt": 40,
"dirt": 40,
"sand": 20
},
View gist:9087a209de555091978f923ef00eed7e
function eventFire(el, etype){
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}