Skip to content

Instantly share code, notes, and snippets.

View akoppela's full-sized avatar

Andrey Koppel akoppela

View GitHub Profile
[submodule "app/assets/javascripts/Packages/qfocuser"]
path = app/assets/javascripts/Packages/qfocuser
url = git://github.com/lovelyscalabledrawings/qfocuser.git
[submodule "app/assets/javascripts/Packages/mootools-custom-event"]
path = app/assets/javascripts/Packages/mootools-custom-event
url = git://github.com/cpojer/mootools-custom-event.git
[submodule "app/assets/javascripts/Packages/art"]
path = app/assets/javascripts/Packages/art
url = git://github.com/kamicane/art.git
[submodule "app/assets/javascripts/Packages/mootools-color"]
name: Giftofoni
filename: giftofoni.js
license: Public domain, http://unlicense.org
copyright: Koppel Andrey
author: lastdrop
category: Interface
sources:
- Source/Application.js
[submodule "public/javascripts/Packages/qfocuser"]
path = public/javascripts/Packages/qfocuser
url = git://github.com/Inviz/qfocuser.git
[submodule "public/javascripts/Packages/mootools-custom-event"]
path = public/javascripts/Packages/mootools-custom-event
url = git://github.com/cpojer/mootools-custom-event.git
[submodule "public/javascripts/Packages/art"]
path = public/javascripts/Packages/art
url = git://github.com/kamicane/art.git
[submodule "public/javascripts/Packages/mootools-color"]
/*
---
script: Select.js
description: Basic selectbox
license: Public domain (http://unlicense.org).
authors: Yaroslaff Fedin
IGC.Widget.Select = new Class({
options: {
tag: 'select',
pseudos: Array.object('focusable', 'value', 'form-associated'),
states: Array.fast('collapsed'),
events: {
self: {
set: function(item) {
this.setValue(item.getValue());
this.write(item.getTitle(), true);
Gamepon.Widget.Timer = new Class({
options: {
actions: {
timer: {
enable: function() {
var time = this.element.get('html').split(':');
this.seconds = time[2].toInt() + (time[1] * 60).toInt() + (time[0] * 3600).toInt();
this.decrementTime.periodical(1000, this);
},
disable: function() {
%ol
%li
.input
%input{:type => 'text'}
%aside<
%a.button{:href => '#'} Убрать
%li
.input
%input{:type => 'text'}
%aside<
Wrongler.Widget.Input.Date = new Class({
Includes: [
LSD.Widget,
LSD.Trait.Date
],
options: {
tag: 'input',
attributes: {
type: 'date'
LSD.Mixin.Animation = new Class({
behaviour: '[animation]',
options: {
animation: {}
},
getAnimation: function() {
if (!this.animation) {
this.animation = this.getAnimatedElement().set('tween', this.options.animation).get('tween');
if(!Browser.ie){
Browser.Features.Touch = (function(){
try {
document.createEvent('TouchEvent').initTouchEvent('touchstart');
return true;
} catch (exception){}
return false;
})();