- Dead code elimination?
- SSR for progressive enhancement?
- Minimum page weight?
- Can you load CSS via JS?
- CSS Modules?
- Webpack for Ember? (or if not possible, can Ember allow PostCSS, et al?)
- Builder app: 1.8MB JS / Player app: 1.3MB JS
- Nesting components?
- Managing functions within Handlebars messy?
- Local ESLint?
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
<strong>this is some bold text!</strong> |
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="my-container"> | |
<img /> | |
</div> | |
<script> | |
var sizeContainer = function() { | |
// console.log(subtractPixels); | |
var subtractPixels = 24; | |
// console.log(subtractPixels); | |
document.querySelector('#my-container') |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 13, | |
// font family with optional fallbacks | |
fontFamily: '"Meslo LG M for Powerline", Papyrus', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
- course
- course code should be 10 characters
- keywords tag field
- language (English, English Canadian, French Canadian, LA Spanish, Brazilian)
- Content Update Reminder Date (CURD™🎉)
- Learning objectives: sentence, followed by a bulleted list; can information in that box be formatted?
- computed
- has audio?
- has video?
- has webcast?
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
if(e.isFinal) { | |
if (e.velocityX > 1) { | |
slider.goTo(slider.activeSlide - 1); | |
} else if (e.velocityX < -1) { | |
slider.goTo(slider.activeSlide + 1) | |
} else { | |
if (percentage <= -(slider.sensitivity / slider.slideCount)) { | |
slider.goTo(slider.activeSlide + 1); | |
} else if (percentage >= (slider.sensitivity / slider.slideCount)) { | |
slider.goTo(slider.activeSlide - 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
var sliderEl = document.querySelector('.slider'); | |
var slideCount = 3; | |
var activeSlide = 0; // NEW: the current slide # (0 = first) | |
var sliderManager = new Hammer.Manager(sliderEl); | |
sliderManager.add( new Hammer.Pan({ threshold: 0, pointers: 0 }) ); | |
sliderManager.on('pan', function(e) { | |
var percentage = 100 / slideCount * e.deltaX / window.innerWidth; | |
var transformPercentage = percentage - 100 / slideCount * activeSlide; // NEW | |
sliderEl.style.transform = 'translateX( ' + transformPercentage + '% )'; | |
if(e.isFinal) { // NEW: this only runs on event end |
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 sliderEl = document.querySelector('.slider'); // NEW: our element | |
var slideCount = 3; // NEW: the total # of slides | |
var sliderManager = new Hammer.Manager(sliderEl); | |
sliderManager.add(new Hammer.Pan({ threshold: 0, pointers: 0 }) ); | |
sliderManager.on('pan', function(e) { | |
var percentage = 100 / slideCount * e.deltaX / window.innerWidth; // NEW: our % calc | |
sliderEl.style.transform = 'translateX(' + percentage + '%)'; // NEW: our CSS transform | |
}); |
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 sliderManager = new Hammer.Manager(document.querySelector('.slider')); | |
sliderManager.add(new Hammer.Pan({ threshold: 0, pointers: 0 })); | |
sliderManager.on('pan', function(e) { | |
console.log(e); | |
}); |