- Подключаем Enabler
- Подключаем Exit
- Шаблон колбеков
- Контрастная рамка у креатива
- Заглушка (50кб max, контрастная рамка)
- Ссылка перехода не битая
- Клики должны быть внутри контейнера
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
//chat://function/?param=bar | |
const { app, BrowserWindow } = require('electron'); | |
const path = require('path'); | |
const url = require('url'); | |
let mainWindow = null; | |
let yourURL; |
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
<body> | |
<div class="content"> | |
</div> | |
<div class="rotateBack"> | |
<p>Переверните устройство</p> | |
</div> | |
</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
const express = require('express'); | |
const cors = require('cors'); | |
const app = express(); | |
app.use(cors()); | |
app.get('/', function(req, res, next) { | |
console.log(req.query.i); |
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
const express = require('express'); | |
const cors = require('cors'); | |
const hexColorRegex = require('hex-color-regex'); | |
const rgbHex = require('rgb-hex'); | |
const w3color = require('./w3color'); // https://www.w3schools.com/lib/w3color.js | |
const app = express(); | |
app.use(cors()); |
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
const express = require('express'); | |
const cors = require('cors'); | |
const normalizeUrl = require('normalize-url'); | |
const url = require('url'); | |
const app = express(); | |
app.use(cors()); | |
app.get('/', function(req, res, next) { |
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
// setTimeout() | |
var timeout = TweenMax.delayedCall(2, function() { | |
// do something once after 2 seconds | |
}); | |
// setInterval() | |
var interval = new TimelineMax({ repeat: -1 }).call(function() { | |
// do something every 2 seconds | |
}, null, null, 2); | |
... | |
interval.kill(); |
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
/** | |
* Based on http://berzniz.com/post/68001735765/javascript-hacks-for-hipsters | |
*/ | |
// Hipster Hack #1 - Method calling | |
var method = (success ? 'start' : 'stop'); | |
obj[method](); | |
// Hipster Hack #2 - String joins | |
['first', 'name'].join(' '); // = 'first name'; |
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
var callback = function(){ | |
// DOM is fully loaded | |
}; | |
if (document.readyState === "complete" || (document.readyState !== "loading" && !document.documentElement.doScroll)) { | |
callback(); | |
} else { | |
document.addEventListener("DOMContentLoaded", callback); | |
} |
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
// |