Våga längta av Anna Ahlund

Böckerna som ingår i serien Våga längta skildras relationer och sex med lust och allvar där alla relationer inkluderats och accepteras och där sex och samtycke skildras genom alla böcker.
function setupElement403386184423906812() {
var requireFunc = window.platformElementRequire || window.require;
// Relies on a global require, specific to platform elements
requireFunc([
‘w-global’,
‘underscore’,
‘jquery’,
‘backbone’,
‘util/platform/elements/PlatformElement’,
‘util/platform/elements/PlatformElementSettings’
], function(
_W,
_,
$,
Backbone,
PlatformElement,
PlatformElementSettings
) {
var dependencies = null || [];
var platform_element_id = “554686955151643818-1.0.2”;
if (typeof _W.loadedPlatformDependencies === ‘undefined’) {
_W.loadedPlatformDependencies = [];
}
if (typeof _W.platformElements === ‘undefined’) {
_W.platformElements = [];
}
if (typeof _W.platformElements[platform_element_id] === ‘undefined’) {
_W.platformElements[platform_element_id] = {};
_W.platformElements[platform_element_id].deferredObject = new $.Deferred();
_W.platformElements[platform_element_id].deferredPromise = _W.platformElements[platform_element_id].deferredObject.promise();
}
if(_.intersection(_W.loadedPlatformDependencies, dependencies).length !== dependencies.length){
_.reduce(dependencies, function(promise, nextScript){
_W.loadedPlatformDependencies.push(nextScript);
return promise.then(function(){
return $.getScript(nextScript);
});
}, $().promise()).then(function(){
_W.platformElements[platform_element_id].deferredObject.resolve();
});
}
if (dependencies.length === 0){
_W.platformElements[platform_element_id].deferredObject.resolve();
}
_W.platformElements[platform_element_id].deferredPromise.done(function(){
var _ElementDefinition = (function() {
var booanimated_headline = PlatformElement.extend({
initialize: function() {
this._ah = this.$(‘.boo-animated-headline’);
this._ah_letter = this.$(‘.boo-letters1’);
this._svg = this.$(‘.boo-ah-svg’);
this._headline_wrapper = this.$(‘.boo-headline-wrapper’);
this._wW = 0;
this._style = this.settings.get(“style”);
this._headline_animation = this.settings.get(“headline_animation”);
this._rotating_text = this.settings.get(“rotating_text”);
this._html_tag = this.settings.get(“html_tag”);
this._html_link = this.settings.get(“html_link”);
this._animation_delay = this.settings.get(“animation_delay”);
this.booanimated_headline();
},
events: {
},
animated_headline: function(){
var _this = this;
_animation_delay = this._animation_delay;
//set animation timing
var animationDelay = _animation_delay,
//letters effect
lettersDelay = 50,
//type effect
typeLettersDelay = 150,
selectionDuration = 500,
typeAnimationDelay = selectionDuration + 800,
//clip effect
revealDuration = 600,
revealAnimationDelay = 1500;
var _this = this;
_ah = this._ah;
_ah_letter = this._ah_letter;
function initHeadline() {
//insert element for each letter of a changing word
if(_ah_letter){
singleLetters(_ah_letter.find(‘.boo-ah-rotating-text .boo-ah-animated-text’));
}else{
// Do Nothing
}
//initialise headline animation
animateHeadline(_ah);
}
function singleLetters($words) {
$words.each(function(){
var word = $(this),
letters = word.text().split(”),
selected = word.hasClass(‘boo-headline-active’);
for (i in letters) {
if(word.parents(‘.boo-swirl’).length > 0) letters[i] = ” + letters[i] + ”;
letters[i] = (selected) ? ” + letters[i] + ”: ” + letters[i] + ”;
}
var newLetters = letters.join(”);
word.html(newLetters).css(‘opacity’, 1);
});
}
function animateHeadline($headlines) {
var duration = animationDelay;
$headlines.each(function(){
var headline = $(this);
if (headline.hasClass(‘boo-clip’)){
var spanWrapper = headline.find(‘.boo-headline-wrapper’),
newWidth = spanWrapper.width() + 10
spanWrapper.css(‘width’, newWidth);
} else if (!headline.hasClass(‘boo-typing’) ) {
var words = headline.find(‘.boo-headline-wrapper .boo-ah-animated-text’),
width = 0;
var wordWidth = words.map(function() {
return $(this).width();
}).get();
var maxWidth = Math.max.apply(null, wordWidth);
headline.find(‘.boo-headline-wrapper’).css(‘width’,maxWidth);
};
//trigger animation
setTimeout(function(){ hideWord( headline.find(‘.boo-headline-active’).eq(0) ) }, duration);
});
}
function hideWord($word) {
var nextWord = takeNext($word);
if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-typing’)) {
var parentSpan = $word.parent(‘.boo-headline-wrapper’);
parentSpan.addClass(‘selected’).removeClass(‘waiting’);
setTimeout(function(){
parentSpan.removeClass(‘selected’);
$word.removeClass(‘boo-headline-active’).addClass(‘boo-headline-inactive’).children(‘i’).removeClass(‘in’).addClass(‘out’);
}, selectionDuration);
setTimeout(function(){ showWord(nextWord, typeLettersDelay) }, typeAnimationDelay);
} else if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-letters1’)) {
var bool = ($word.children(‘i’).length >= nextWord.children(‘i’).length) ? true : false;
hideLetter($word.find(‘i’).eq(0), $word, bool, lettersDelay);
showLetter(nextWord.find(‘i’).eq(0), nextWord, bool, lettersDelay);
} else if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-clip’)) {
$word.parents(‘.boo-headline-wrapper’).animate({ width : ‘2px’ }, revealDuration, function(){
switchWord($word, nextWord);
showWord(nextWord);
});
} else {
switchWord($word, nextWord);
setTimeout(function(){ hideWord(nextWord) }, animationDelay);
}
}
function showWord($word, $duration) {
if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-typing’)) {
showLetter($word.find(‘i’).eq(0), $word, false, $duration);
$word.addClass(‘boo-headline-active’).removeClass(‘boo-headline-inactive’);
} else if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-clip’)) {
$word.parents(‘.boo-headline-wrapper’).animate({ ‘width’ : $word.width() + 10 }, revealDuration, function(){
setTimeout(function(){ hideWord($word) }, revealAnimationDelay);
});
}
}
function hideLetter($letter, $word, $bool, $duration) {
$letter.removeClass(‘in’).addClass(‘out’);
if(!$letter.is(‘:last-child’)) {
setTimeout(function(){ hideLetter($letter.next(), $word, $bool, $duration); }, $duration);
} else if($bool) {
setTimeout(function(){ hideWord(takeNext($word)) }, animationDelay);
}
if($letter.is(‘:last-child’) && $(‘html’).hasClass(‘no-csstransitions’)) {
var nextWord = takeNext($word);
switchWord($word, nextWord);
}
}
function showLetter($letter, $word, $bool, $duration) {
$letter.addClass(‘in’).removeClass(‘out’);
if(!$letter.is(‘:last-child’)) {
setTimeout(function(){ showLetter($letter.next(), $word, $bool, $duration); }, $duration);
} else {
if($word.parents(‘.boo-animated-headline’).hasClass(‘boo-typing’)) { setTimeout(function(){ $word.parents(‘.boo-headline-wrapper’).addClass(‘waiting’); }, 200);}
if(!$bool) { setTimeout(function(){ hideWord($word) }, animationDelay) }
}
}
function takeNext($word) {
return (!$word.is(‘:last-child’)) ? $word.next() : $word.parent().children().eq(0);
}
function takePrev($word) {
return (!$word.is(‘:first-child’)) ? $word.prev() : $word.parent().children().last();
}
function switchWord($oldWord, $newWord) {
$oldWord.removeClass(‘boo-headline-active’).addClass(‘boo-headline-inactive’);
$newWord.removeClass(‘boo-headline-inactive’).addClass(‘boo-headline-active’);
}
initHeadline();
},
booanimated_headline: function(){
var _this = this;
_ah = this._ah;
_svg = this._svg;
_headline_animation = this._headline_animation;
_rotating_text = this._rotating_text;
_headline_wrapper = this._headline_wrapper;
_style = this._style;
_html_tag = this._html_tag;
_html_link = this._html_link;
// Add Href Link
if(_html_tag==”a”){
_ah.attr(‘href’,_html_link);
}else{
_ah.removeAttr(‘href’);
}
if(_style==”highlighted”){
var circle_svg = ”;
var curlyline_svg = ”;
var double_svg = ”;
var doubleline_svg = ”;
var strike_svg = ”;
var zigzag_svg = ”;
var diagonal_svg = ”;
var underline_svg = ”;
var delete_svg = ”;
var data_svg = _ah.attr(‘data-svg’);
_svg.html(eval(data_svg));
_svg.find(‘svg’).css({‘width’:’calc(100% + 20px)’,’height’:’calc(100% + 20px)’})
}else if(_style==”rotating”){
// Add Class Boo Letters
// if(_headline_animation==”typing”||_headline_animation==”swirl”||_headline_animation==”blinds”||_headline_animation==”wave”){
// _ah.addClass(‘boo-letters’);
// }else{
// _ah.removeClass(‘boo-letters’);
// }
// Add Rotating Text
var _list = “”;
if(_rotating_text==””){
_list += ‘Better’;
_list += ‘Bigger’;
_list += ‘Faster’;
}else{
_rotating_text = _rotating_text.replace(/(?:rn|r|n)/g, ‘,’);
var _rotating_array = _rotating_text.split(“,”);
for (var i=0;i