Skip to content

Instantly share code, notes, and snippets.

View varya's full-sized avatar
🏠
Working from home

Varya Stepanova varya

🏠
Working from home
View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
var jsLocation = '/js/';
</script>
<script src="js/_Manager.js" type="text/javascript"></script>
@varya
varya / gist:14343
Created October 2, 2008 12:34
_Manager.js
var Manager = function(el){
this.el = el || $('html').get(0);
var thisManager = this;
$.event.add(this, 'Manager::ManagerControl', function(e, el) {
thisManager.initPart(el);
}
)
};
Manager.prototype = {
var TestControl = function(el, index, params) {
this.init(el, index, params);
}
TestControl.prototype = {
init : function(el, index, params) {
var thisTestControl = this;
this.message = params.message;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="../manager/js/jquery.js" type="text/javascript"></script>
<script src="../manager/js/jquery-template.js" type="text/javascript"></script>
<script type="text/javascript">
var jsLocation = 'js/';
</script>
(function($) {
$.fn.applyTemplate = function(template, params, mode) {
var method = mode || 'html'
var reg = /\$\{([a-zA-Z_\.]*)\}/g;
var iter, tname, se, path, par;
while((iter = reg.exec(template)) != null) {
<div id="js_LightWindow" class="g-hidden">
<div class="b-overlay js_LightWindow-overlay"></div>
<div class="h-lightwindow js_LightWindow-container">
<div class="b-lightwindow js_LightWindow-window">
<span class="js_LightWindow-close close"><span>закрыть</span></span>
<div class="js_LightWindow-content"></div>
</div>
</div>
</div>
<h1>${title}</h1>
Второй контент.
var LightWindow = function(el, index, params) {
this.el = el;
this.index = index;
this.params = params;
this.loadTemplate();
}
LightWindow.prototype = {
init : function(el, index, params) {
@varya
varya / dabblet.css
Created June 26, 2012 18:15 — forked from tyv/dabblet.css
— цвет внешних ссылок #f70;
/*
— цвет внешних ссылок #f70;
— ссылка в новом окне должна
после себя содержать utf символ
без подчеркивания
— ссылки на сервисы google должны быть цвета #666
— http://clck.ru/d/DCx9h3cu142dJ
*/
a[href^="http"]:link,
@varya
varya / dabblet.css
Created June 26, 2012 18:41
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;