#Define
"new-slice" : {
"type" : "Slice",
//No repeatable zone
"non-repeat" : {
"titre" : {
"type" : "StructuredText"
}
},
$.fn.centerIn = function (parent) { | |
var parentHeight = parent.height(), | |
parentWidth = parent.width(), | |
assetHeight = this.height(), | |
assetWidth = this.width(), | |
parentRatio = parentWidth / parentHeight, | |
assetRatio = assetWidth / assetHeight; | |
//----> ratio | |
if ( parentRatio < imgRatio ) { |
define([], function() { | |
//use: module.easeInExpo( time, beginning value, change in value, duration ); | |
return { | |
linear: function (t, b, c, d) { | |
return (t==0) ? b : c*(t/=d) + b; | |
}, | |
easeInQuad: function (t, b, c, d) { | |
return c*(t/=d)*t + b; | |
}, |
/* | |
* | |
* Works with elements or jquery | |
* | |
* scrollTo(element, duration, offset); | |
* | |
* Update 'scroller' variable with custom scrolling element if not document.body | |
* | |
*/ |
npm install -g beefy | |
mkdir proto && cd proto | |
touch index.js | |
npm init | |
npm install installify | |
beefy index.js -- -t installify | |
# open devtools | |
# add folder to workspace | |
# edit index.js e.g. var module = require('anything-from-npm') |
/* | |
* | |
* Use: | |
* var pages = blocksToPages(myElement) | |
* returns array of elements. | |
* | |
*/ | |
define([ | |
], function() { |
Verifying that +prisme is my blockchain ID. https://onename.com/prisme |
#ONCE : | |
#on your mark | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
#ready | |
npm i -g cssnext watchify serve opn-cli | |
#EACH | |
#steady | |
mkdir proto & cd proto & touch index.js index.css index.html | |
#go ! |
app.route('/').get(function(req, res){ | |
api(req, res) | |
.then(function(api) { | |
api.query( prismic.Predicates.at('document.type', 'home-page') ) | |
.then((pageContent) => { | |
if (pageContent) { | |
res.render('index', { | |
pageContent : pageContent.results[0], |
#Define
"new-slice" : {
"type" : "Slice",
//No repeatable zone
"non-repeat" : {
"titre" : {
"type" : "StructuredText"
}
},
Bonjour Nathalie | |
Suite à notre RDV de production hier, voici quelques informations essentielles sur l'événement, | |
ainsi qu'une présentation du projet en pièce jointe | |
A votre disposition pour tout complément d'information | |
Bien à vous | |
Jérémy Saint-Prix | |
+33 (0)6 60 80 02 61 |