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
//Install express server | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static('./dist/acv')); | |
app.get('/*', function(req,res) { |
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
{ | |
"name": "acv", | |
"version": "0.0.0", | |
"scripts": { | |
"ng": "ng", | |
"start": "node server.js", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e", |
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
// AJAX | |
var xhr = new XMLHttpRequest(); // создание http запроса | |
xhr.open('GET', 'https://developer.mozilla.org/ru/docs/Web/API/XMLHttpRequest'); // подготовка запроса. ВАЖНО - соединение не открывается | |
xhr.responseType = 'JSON'; // тип ожидаемого документа | |
xhr.send(); // отправка запроса | |
xhr.onload = function () { // получение ответа от сервера | |
console.log(xhr.responseText); | |
} |
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
.clearfix:before, | |
.clearfix:after { | |
content: ""; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} |
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
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
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
//** Load fonts from this directory. | |
@icon-font-path: "../fonts/"; | |
//** File name for all font files. | |
@icon-font-name: "glyphicons-halflings-regular"; | |
//** Element ID within SVG icon file. | |
@icon-font-svg-id: "glyphicons_halflingsregular"; | |
// Import the fonts | |
@font-face { | |
font-family: 'Glyphicons Halflings'; |
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
@font-face { | |
font-family: PFDinDisplayPro; | |
src: url(../fonts/PFDinDisplayPro-Light_0.ttf); | |
font-weight: 300; | |
} |
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
wget -r -k -l 7 -p -E -nc http://site.com/ |
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
$("#textarea").keyup(function(){ | |
$("#count").text("Characters left: " + (500 - $(this).val().length)); | |
}); |
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.location.href === 'http://localhost.ru/sample/tony_r/sale.html') { | |
} else { | |
document.children[0].innerHTML = ''; | |
} |
NewerOlder