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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Your Website</title> | |
</head> | |
<body> |
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
function clone(obj) { | |
// Handle the 3 simple types, and null or undefined | |
if (null == obj || "object" != typeof obj) return obj; | |
// Handle Date | |
if (obj instanceof Date) { | |
var copy = new Date(); | |
copy.setTime(obj.getTime()); | |
return copy; | |
} |
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
jQuery. noConflict(); | |
jQuery(function($){ | |
/**************** | |
Ваш код теперь может начинаться со знака "$") | |
****************/ | |
$(document).ready(function(){ | |
}); | |
}); |
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
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ | |
/* Written by Andrew Stromnov (stromnov@gmail.com). */ | |
jQuery(function($){ | |
$.datepicker.regional['ru'] = { | |
closeText: 'Закрыть', | |
prevText: '<Пред', | |
nextText: 'След>', | |
currentText: 'Сегодня', | |
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', | |
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], |
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
if (var instanceof Array) | |
{ | |
alert "Var is array!"; | |
} | |
else | |
{ | |
alert "Var isn't array!"; | |
} |
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
b = [a, a = b][0]; |
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
function getPolygoneCentroid(polygone){ | |
var centroid = {x:0, y:0}; | |
var signedArea = 0; | |
var x0 = 0; // Current vertex X | |
var y0 = 0; // Current vertex Y | |
var x1 = 0; // Next vertex X | |
var y1 = 0; // Next vertex Y | |
var a = 0; // Partial signed area |
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
(function(m,s,c){return (c ? arguments.callee(m,s,c-1) : '') + | |
s[m.floor(m.random() * s.length)]})(Math,'0123456789ABCDEF',5) |
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
w=window.open(); | |
w.document.write($('.report_left_inner').html()); | |
w.print(); | |
w.close(); |
OlderNewer