$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
$('a[href*=#]:not([href=#])').click(function(e) {
if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
e.preventDefault();
}
}
});
- if(Core.state!==undefined&&names[i-2]!==Core.state)
+ if(Core.state!==undefined&&names[i-2]!==Core.state && Core.state.indexOf('.html') < 0)
$(this).attr("value")
? А почему у вас координаты одинаковые?$('.wrap').on('click', function(e){
var button = $(this).find('.button');
if (e.target !== button[0]) {
button.click();
}
});
<html lang="en" class="android mobile portrait"
.android, .ios-icon {
position: absolute;
position: fixed;
top: 0;
z-index: 999;
width: 100%;
height: 100%;
background: #000;
display: none;
//first add intro items with data-step
for (var i = 0, elmsLength = allIntroSteps.length; i < elmsLength; i++) {
var currentElement = allIntroSteps[i];
var step = parseInt(currentElement.getAttribute('data-step'), 10);
if (step > 0 && !introItems[step - 1]) { // изменить
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 59.211499, lng: 39.839916},
zoom: 18,
panControl: false,
zoomControl: false,
mapTypeControl: false,
scaleControl: false,
streetViewControl: false,
overviewMapControl: false
});
var image = 'img/arrow1.png';
var beachMarker = new google.maps.Marker({
position: {lat: 59.211499, lng: 39.839916},
map: map,
icon: image
});
var styles = [
{
featureType: "labels",
elementType: "icon",
stylers: [
{ visibility: "off" }
]
}
];
map.setOptions({styles: styles}); // Добавить
}
var styles = [
{
featureType: "all",
stylers: [
{ saturation: -80 }
]
},
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [
{ hue: "#00ffee" },
{ saturation: 50 }
]
},
{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
for (var i = 0, le = rsrGroups.length; i <= le; i++) {
for (var i = 0, len = rsrGroups.length; i < len; i++) {
if (number_js[p] == rsrGroups[i].data("room")) {
rsrGroups[i].attr('fill', 'red');
}
}
Calendar.defaults = {
...
nextDayThreshold: '09:00:00', // 9am
$('#calendar').fullCalendar({
nextDayThreshold: '00:00:00'
<!-- Include Twitter Bootstrap and jQuery: -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"/>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>