This file contains hidden or 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
document.addEventListener("DOMContentLoaded", function() { | |
//Code | |
}); |
This file contains hidden or 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
<? CJSCore::Init(array("jquery"));?> | |
<script> | |
var years = document.querySelectorAll(".history_vertical_year"); | |
years[0].classList.add("active"); | |
var clickYearHandler = function (el) { | |
var len = years.length; | |
for(var i = len; i > 0; i --){ | |
years[i-1].classList.remove("active"); |
This file contains hidden or 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
.box { | |
margin: 80px 30px; | |
width: 200px; | |
height: 200px; | |
position: relative; | |
background: #fff; | |
float: left; | |
} | |
.box:before { | |
content: ''; |
This file contains hidden or 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
<img src="img.png" usemap="#btn_link" width="0" height="0" alt="" /> | |
<map name="btn_link"> | |
<area shape="rect" coords="0,0,0,0" href="http://www.quizful.net" target="_blank" alt="" /> | |
</map> |
This file contains hidden or 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> | |
<title>CSS3 Checkbox</title> | |
<style type="text/css"> | |
.checkbox { | |
width: 30px; | |
height: 30px; | |
background-color: #ddd; | |
position: relative; |
This file contains hidden or 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 (window.localStorage) { | |
var elements = document.querySelectorAll('[name]'); | |
for (var i = 0, length = elements.length; i < length; i++) { | |
(function(element) { | |
var name = element.getAttribute('name'); | |
element.value = localStorage.getItem(name) || ''; | |
element.onkeyup = function() { |
This file contains hidden or 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 () { | |
'use strict'; | |
var gulp = require('gulp'), | |
prefixer = require('gulp-autoprefixer'), | |
uglify = require('gulp-uglify'), | |
sass = require('gulp-sass'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rigger = require('gulp-rigger'), |
This file contains hidden or 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
[\sA-Za-zА-ЯЁа-яё0-9-:]+\.[\w-]+ |
This file contains hidden or 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
//Задание одинаковых минимальных и максимальных значений | |
<td style="max-width:200px; min-width:200px; max-height:50px; min-height:50px; width:200px; height:50px;"> | |
.td_size { | |
width:200px; | |
height:50px; | |
max-width:200px; | |
min-width:200px; | |
max-height:50px; | |
min-height:50px; |
This file contains hidden or 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |