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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'ul', | |
display: Ember.computed('data.[]', function() { | |
return this.get('data').slice(-1)[0]; | |
}), | |
nested: Ember.computed('data.[]', function() { | |
return this.get('data').slice(0, -1); | |
}), |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: 'ul', | |
display: Ember.computed('data', function() { | |
return this.get('data').pop(); | |
}), | |
nested: Ember.computed('data', function() { | |
return this.get('data').slice(0, -1); | |
}), |
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
import Adapter from "ember-data/adapters/json-api"; | |
export default Adapter.extend(); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
/* ---------------------------------------------------------------------------------------------------------- | |
03 Converts all svg images to inline svgs | |
---------------------------------------------------------------------------------------------------------- */ | |
function imgToSvg(){ | |
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
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
ffmpeg -i "input.mkv" \ | |
-map 0:0 -map 0:1 -map 0:1 \ | |
-c:v copy \ | |
-c:a:0 libfaac -b:a:0 192k -ac 2 \ | |
-c:a:1 copy \ | |
"output.conv.mkv" |
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
<video id="video" class="full-bleed" preload="" autoplay=""> | |
<source src="/videos/MMI-Feature-Vid-01.2.webmhd.webm" type="video/webm"> | |
<source src="/videos/MMI-Feature-Vid-01.3.mp4" type="video/mp4"> | |
</video> |
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
// Slider build pagination before iosslider loads | |
$('.general .slides').each(function(i,e){ | |
if($(this).find('> .slide').length > 1){ | |
slidePaginate(i,e); | |
} | |
}); | |
// this should be run outside of the iosslider load code | |
function slidePaginate(i,e,el) { | |
var e = $(e); |
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
<div id="browserUpdate" class="browserUpdate overlay"> | |
<a href="#" class="overlay-close js-close"><i class="icn-x icon-box -rev"></i></a> | |
<div class="view view-directory swiper-container browserUpdate-container"> | |
<div class="swiper-slide"> | |
<div class="row cf"> | |
<div class="col-18 ac ci browserUpdate-info"> | |
<img class="browserUpdate-warning-icon" src="/sites/all/themes/adu/assets/media/img/optimized/browserUpdate/warning.png" alt="warning icon"> | |
<h4>Did you know your browser is out of date?</h4> | |
<p>To get the best possible experience using our website we recommend that you upgrade to a newer version or other web broswer. A list of the most popular web browsers can be found below. </p> | |
<p><strong>By closing this window you acknowledge that your experience on this website may be degraded.</strong></p> |