Skip to content

Instantly share code, notes, and snippets.

let id = 0;
let init = [];
socket.ws.send('{"cmd":"GetScript"}');
socket.onMessage( data => {
if (data.cmd == 'SetScript') {
Parse(data.script);
}
})
function operatorsPanel(){
function submit(value = 'включить'){
var name = document.createElement('input');
name.type = 'submit';
name.value = value;
return name;
}
var div = document.createElement('div');
function initmark(status){
initmarkstatus = status;
console.log('initmark(status)',status);
if (!status){
document.body.onmouseover = function(){};
document.body.onmouseout = function(){};
return
}
var saveFirstStyle = {backgroundColor: null, opacity: null};
function mouseover(e){
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Neuron</title>
</head>
<script>
let save = 0;
function manager_mode(options){//парсит url на наличие параметров прописаных через хеш(#)
options = options ? options : options === false ? false : {};
if (!options) { //удаляем Stor если передали false
window.sessionStorage.removeItem('manager_mode');
return;
}
var hash = window.location.hash;
var getParam = JSON.parse( sessionStorage.getItem('manager_mode') );
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>animate button</title>
</head>
<style>
/*
animation: animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction;
*/
const path = require('path');
const gulp = require('gulp');
const babel = require('gulp-babel');
const sourcemaps = require('gulp-sourcemaps');
const gutil = require('gulp-util');
const clean = require('gulp-clean');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
const filesize = require('gulp-filesize');
var aud = document.getElementsByClassName('current_audio')[0].textContent;
var audio = aud;
var memmory = [];
memmory.push(audio);
setIterval(()=>{
aud = document.getElementsByClassName('current_audio')[0].textContent;
if(audio != aud){
memmory.push(aud);
audio = aud;
}
@SergProduction
SergProduction / index.html
Last active September 19, 2016 14:21
render LI in UL
<div id="root">
<input type="text" class="form-control" placeholder="Введите имя" value="">
<ul></ul>
</div>
function createButtonAnimate(b_type, b_style, b_direction, b_parent){ //создает анимированные кнопки | глоб об: check_win; main_button; other_button; w_content_click
//b_type = css главной кнопки; b_style = стили окружающих кнопок;
//b_direction = 'top', 'bottom' напрвление ; b_parent = родителский элемент
//подключаем стили кнопок (общие)
b_type = 'http://onlinesaler.ru/assets/templates/buttons/css/button_'+b_type+'.css';
b_style = 'http://onlinesaler.ru/assets/templates/buttons/css/other_buttons_'+b_style+'.css';
var styleButOther = document.createElement('link');
styleButOther.rel = 'stylesheet';