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
<?php $loop = new WP_Query( array( 'post_type' => 'course_feature', 'orderby' => 'post_id', 'order' => 'ASC' ) ); ?> | |
<?php while ( $loop->have_posts() ): $loop->the_post(); ?> | |
<div class="col-sm-2"> | |
<i class="<?php the_field( 'course_features_icon' ); ?>"></i> | |
<h4><?php the_title(); ?></h4> | |
</div> | |
<?php endwhile; ?> |
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 render = function () { | |
$('.innovation-index').each(function () { | |
var spaceKey = $(this).find('.innovation-spacekey').first().val(); | |
var labels = $(this).find('.innovation-labels').first().val().split(','); | |
var baseURL = $(this).find('.innovation-baseurl').first().val(); | |
var descriptionField = $(this).find('.innovation-descriptionField').first().val(); | |
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 $overlay = jQuery('<div id="overlay"></div>'); | |
var $image = jQuery("<img src='<%= article.getDataImage() %>'>"); | |
$overlay.append($image); | |
jQuery("body").append($overlay); | |
jQuery("#agirc-thumb").click(function(event){ | |
event.preventDefault(); | |
$overlay.show(); | |
}); | |
$overlay.click(function(){ | |
$overlay.hide(); |
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
/** | |
* Created by SBasti on 6/15/2017. | |
*/ | |
var express = require ('express'); | |
var app = express(); | |
app.get('/',function(req,res) { | |
res.send('Hello Express'); | |
}); | |
app.get('/me',function(req,res){ | |
res.send('planet'); |
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
/** | |
* Created by SBasti on 6/15/2017. | |
*/ | |
var express = require ('express'); | |
var app = express(); | |
app.set('view engine','ejs'); | |
app.locals.pagetitle = "awesome website"; | |
app.get('/',function(req,res) { |
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
$(document).on('click', 'A.clickMe', function(event){ | |
$.console.log('Hello World'); | |
}); | |
var equalizeHeights = function () { | |
$(".equalizer").each(function(ix, el) { | |
var heights = $(el).find('.eq-watch').map(function() { | |
return $(this).height(); | |
}).get(); | |
maxHeight = Math.max.apply(null, heights); |
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 equalizeHeights = function () { | |
$(".equalizer").each(function(ix, el) { | |
var heights = $(el).find('.eq-watch').map(function() { | |
return $(this).height(); | |
}).get(); | |
maxHeight = Math.max.apply(null, heights); | |
$(el).find('.eq-watch').height(maxHeight); | |
}); | |
}; |