alert(data.weather[0].id);
$(document).on('click', 'a[class^="id"]', function(e) {
e.preventDefault();
console.log(e.target);
console.log(this);
alert('Вы кликнули по ссылке с классом ' + this.className);
});
$(".ajaxcart").colorbox({
onLoad : function() { $(this).colorbox.resize(); },
onComplete : function() { start_show(); $(this).colorbox.resize(); },
fastIframe: false,
scrolling: false,
initialWidth: false,
innerWidth: false,
maxWidth: false,
height: false,
initialHeight: false,
innerHeight: false,
//returnFocus: false,
top: '45%' <- убрать
var gulp = require('gulp'),
through = require('through2'),
favicons = require('favicons'); <-- здесь косяк
favicons = require('gulp-favicons');
app.set('views', 'app');
app.engine('html', require('ejs').renderFile);
app.set('view engine', 'html');
app.use(express.static(__dirname + '/')); <-- this
<link href="/app/core/client/css/core.css" rel="stylesheet" type="text/css">
<link href="/app/ehr/client/css/ehr.css" rel="stylesheet" type="text/css">
<script src="/bower_components/angular/angular.js"></script>
<script src="/bower_components/angular-loader/angular-loader.js"></script>
.find('input, textarea, select').not(":hidden, [data-abide-ignore]")
.off('.abide')
.on('blur.fndtn.abide change.fndtn.abide', function (e) {
...
.on('keydown.fndtn.abide', function (e) {
....
/* var pagination = function(page) {
<ul class="paginationControl">
<div class="post-actions">
<button class="likes" data-postid="1">
<i class="glyphicon glyphicon-thumbs-up"></i>
</button>
<button class="dislikes" data-postid="1">
<i class="glyphicon glyphicon-thumbs-down"></i>
</button>
<span class="like_count" data-postid="1"></span>
</div>
$(document).on("click", ".likes", function (e) {
e.preventDefault();
var self = $(this),
postid = self.data("postid");
$.get('/send_like/',{"pk":postid}, function(e){
$('.like_count[data-postid="'+postId+'"]').show();
self.hide();
$('.dislikes[data-postid="'+postId+'"]').show();
});
});
$host = $_SERVER['HTTP_HOST'];
define('HTTP_SERVER', 'http://'.$host.'/oc/admin/');
define('HTTP_CATALOG', 'http://'.$host.'/oc');