$(window).bind("load", function() {
"use strict";
$(".spn_hol").fadeOut(500);
});
$(document).ready(function() {
$(window).resize(function() {
if ($(window).width() < 768) {
$('.nav a').on('click.toggle-nav', function(){
$('.navbar-toggle').click()
});
}
else {
$('.nav a').off('click.toggle-nav')
}
}).resize();
});
<input type='text' name='name' class='name' style="text-transform: capitalize;" placeholder='Enter your name here'/>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Генерация номера Казань</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<body>
<script>
function Number () {
var plusNumber = Math.floor(Math.random() * (9086543 - 1123456 + 1)) + 1123456;
var arrPreff = ["+7", "8", ""];
var randPreff = Math.floor(Math.random() * arrPreff.length);
var arrCode = ['900', '902', '903', '904', '905', '906', '908', '909', '917', '919', '927', '929', '937', '939', '950', '951', '952', '953', '958', '960', '962', '963', '965', '966', '967', '986', '987', '996', '999'];
var randCode = Math.floor(Math.random() * arrCode.length);
var resultNumber = arrPreff[randPreff]+arrCode[randCode]+plusNumber;
document.getElementById('phone-num').innerHTML = resultNumber;
}
</script>
<div style="margin-top:15%;" class="container">
<p id="phone-num" class="center-block text-center" style="text-align-center;">Тут будет номер</p>
<button class="btn center-block" onclick="Number()">Сгенерировать номер</button>
</div>
</body>
</html>
The getElementsByTagName() method returns a collection of all elements in the document with the specified tag name, as a NodeList object.
The NodeList object represents a collection of nodes. The nodes can be accessed by index numbers. The index starts at 0.
position: relative;
для .test1 укажите. Без этого зеленый прямоугольник цепляется к body.For absolutely positioned elements, the top property sets the top edge of an element to a unit above/below the top edge of its nearest positioned ancestor. Note: If an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling. Note: A "positioned" element is one whose position is anything except static.
Tip: A positioned element is an element with the position property set to: relative, absolute, or fixed.
$(document).ready(function() {
"use strict";
$("#owl-demo").owlCarousel({
autoPlay: 3000,
items: 4, //10 items above 1000px browser width
itemsDesktop: [1370, 3], //5 items between 1000px and 901px
itemsDesktopSmall: [900, 2], // betweem 900px and 601px
itemsTablet: [600, 1], //2 items between 600 and 0
});
});
.is-about #stage{-webkit-transform:translate(-50%,-50%) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(-90deg) translate3d(20px,-2930px,0);transform:translate(-50%,-50%) scaleX(1) scaleY(1) scaleZ(1) rotateX(0deg) rotateY(0deg) rotateZ(-90deg) translate3d(20px,-2930px,0)}
#разрешаем loopback
iptables -A INPUT -i lo -j ACCEPT
#разрешаем icmp
iptables -A INPUT -p icmp -j ACCEPT
#разрешаем коннект на 6292 tcp
iptables -A INPUT -p tcp -m tcp --dport 6292 -j ACCEPT
#настраиваем openvpn (это порты по-умолчанию)
#разрешаем соединения на udp порт openvpn
iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 1194 -j ACCEPT
#разрешаем TUN соединения к openvpn серверу
iptables -A INPUT -i tun+ -j ACCEPT
#разрешаем форвардинг соединений с TUN интерфейса через другие интерфейсы
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT
#натируем клиентсткий vpn трафик в интернет (маску vpn подсети свою указывайте)
iptables -t nat -A POSTROUTING -s 10.0.0.0/16 -o eth0 -j MASQUERADE
#дальше настройка CloudFlare, взял отсюда https://rietta.com/blog/2012/09/10/using-iptables-to-require-cloudflare/
#
# CloudFlare Network has Access to HTTP (port 80)
#
iptables -A INPUT -s 204.93.240.0/24 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 204.93.177.0/24 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 199.27.128.0/21 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 173.245.48.0/20 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 103.22.200.0/22 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 141.101.64.0/18 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 108.162.192.0/18 -p tcp --dport http -j ACCEPT
iptables -A INPUT -s 190.93.240.0/20 -p tcp --dport http -j ACCEPT
#
# CloudFlare Network has Access to Encrypted HTTPS (port 443)
#
iptables -A INPUT -s 204.93.240.0/24 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 204.93.177.0/24 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 199.27.128.0/21 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 173.245.48.0/20 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 103.22.200.0/22 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 141.101.64.0/18 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 108.162.192.0/18 -p tcp --dport https -j ACCEPT
iptables -A INPUT -s 190.93.240.0/20 -p tcp --dport https -j ACCEPT
#RELATED,ESTABLISHED соединения разрешаем
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
#все остальное запрещаем
iptables -A INPUT -j REJECT --reject-with icmp-port-unreachable