<commit_before>/**
 * Author:
 * Fabz
 */

// require("./libs/skrollr");
// require("./libs/picturefill");

// Create a closure to maintain scope of the '$' and FBZ
;(function(FBZ, $) {

		$(window).load(function() {

		});


	$(function() {

		// initial functions 
		FBZ.control.readFromGoogleDocs();
		FBZ.control.determineSection();
		FBZ.control.onResizeStage();
		FBZ.control.defineStage();
		FBZ.control.resizeContentBlock();
		FBZ.control.activateMenu();

	});// END DOC READY
	
	FBZ.model = {
		// add your data here 

		windowH	: 0, //browser screen 
		windowW	: 0,
		stageH	: window.innerHeight, //total document size
		stageW	: window.innerWidth,
		stateObj : {},
		currentArticule : "",
		currentSectionIndex : 0,
		i18n : null,
		noBrain : {},
		currentLang:"es",
		months : ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],
		days : ["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],
		$selectedform : {},
		// js detection
		mobileMode:false,
		tabletMode:false,
		desktopMode:false,
		// value holders
		swapToMobileBreakpoint:500,
		swapToTabletBreakpoint:1024,
		date : new Date(),
		dropdown : "",
		currentSection : "#cartelera",
		slideshowDescription : [],
		clock: {},
		time: 10000,
		currentImage:0,
		totalImage:0,
		imagesInDOM:0,

	};

	FBZ.view = {

		// add dom elements here
		$stage 				:$(window),
		$header				:$('header'),
		$main				:$('.main'),
		$block				:$('.block'),
		$langBtn			:$('.lang-btn'),
		$footer				:$('footer'),
		$leftContainer 		:$('.left-container'),
		$siteMenu			:$('.site-menu'),
		$btnMenu			:$('.menu-btn'),
		$address			:$('address'),
		$mailto				:$('.mailto'),
		$telephone			:$('.telephone'),
		$socialBlock		:$('.social-block'),
		$centralContainer 	:$('.central-container'),
		$rightContainer		:$('.right-container'),
		dropdownCartelera	: document.getElementById("dropdown-cartelera"),
		$bgPicture			:$('.bg-picture'),
		$iconBurger 		:$('.icon-burger'),
		$images 			:$('images'),
	},

	FBZ.control = {
		// add function here
		init : function () {
			console.debug('SALA K is running');
			FBZ.control.populateBackground();
			FBZ.control.getTime();
			FBZ.control.populateLeftContainer();
			FBZ.control.gotoCorrectURL();
			// FBZ.control.masterLoader();

		},


		masterLoader : function (container) {

			FBZ.view.images = $(container).find("img");
			var source = $(container).find("source");

			source.each(function( index,element ) {

				element.srcsetSave = element.srcset;
				element.srcset = "#";
				if(!element.complete) {

					$(element).hide();
				}

			});

			FBZ.view.images.each(function( index,element ) {
				element.srcSave = element.src;
				element.src = "#";

			});<commit_msg>hide, cuaderno K sección if no content<commit_after>/**
 * Author:
 * Fabz
 */

// require("./libs/skrollr");
// require("./libs/picturefill");

// Create a closure to maintain scope of the '$' and FBZ
;(function(FBZ, $) {

		$(window).load(function() {

		});

	$(function() {

		// initial functions 
		FBZ.control.readFromGoogleDocs();
		FBZ.control.determineSection();
		FBZ.control.onResizeStage();
		FBZ.control.defineStage();
		FBZ.control.resizeContentBlock();
		FBZ.control.activateMenu();

	});// END DOC READY
	
	FBZ.model = {
		// add your data here 

		windowH	: 0, //browser screen 
		windowW	: 0,
		stageH	: window.innerHeight, //total document size
		stageW	: window.innerWidth,
		stateObj : {},
		currentArticule : "",
		currentSectionIndex : 0,
		i18n : null,
		noBrain : {},
		currentLang:"es",
		months : ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],
		days : ["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],
		$selectedform : {},
		// js detection
		mobileMode:false,
		tabletMode:false,
		desktopMode:false,
		// value holders
		swapToMobileBreakpoint:500,
		swapToTabletBreakpoint:1024,
		date : new Date(),
		dropdown : "",
		currentSection : "#cartelera",
		slideshowDescription : [],
		clock: {},
		time: 10000,
		currentImage:0,
		totalImage:0,
		imagesInDOM:0,
		ifCuandernoKHasNoContent: false,

	};

	FBZ.view = {

		// add dom elements here
		$stage 				:$(window),
		$header				:$('header'),
		$main				:$('.main'),
		$block				:$('.block'),
		$langBtn			:$('.lang-btn'),
		$footer				:$('footer'),
		$leftContainer 		:$('.left-container'),
		$siteMenu			:$('.site-menu'),
		$btnMenu			:$('.menu-btn'),
		$address			:$('address'),
		$mailto				:$('.mailto'),
		$telephone			:$('.telephone'),
		$socialBlock		:$('.social-block'),
		$centralContainer 	:$('.central-container'),
		$rightContainer		:$('.right-container'),
		dropdownCartelera	: document.getElementById("dropdown-cartelera"),
		$bgPicture			:$('.bg-picture'),
		$iconBurger 		:$('.icon-burger'),
		$images 			:$('images'),
	},

	FBZ.control = {
		// add function here
		init : function () {
			console.debug('SALA K is running');
			FBZ.control.populateBackground();
			FBZ.control.getTime();
			FBZ.control.populateLeftContainer();
			FBZ.control.gotoCorrectURL();
			// FBZ.control.masterLoader();
			FBZ.control.checkIfCuadernoK();

		},

		checkIfCuadernoK : function () {
			console.log("checkIfCuadernoK", FBZ.model.ifCuandernoKHasNoContent);

			for ( var i = 0 ; i < FBZ.model.noBrain.cuadernoK.elements.length ; i ++ ) { 

				if(FBZ.model.noBrain.cuadernoK.elements[i].Privacidad != "PRIVADO") {  

					FBZ.model.ifCuandernoKHasNoContent = true; 

				}
			}

			if (!FBZ.model.ifCuandernoKHasNoContent) { 
				FBZ.control.hideCuadernoK()
			} 
		},

		hideCuadernoK : function () {
			$(".cuadernoK").hide();
		}, 

		masterLoader : function (container) {

			FBZ.view.images = $(container).find("img");
			var source = $(container).find("source");

			source.each(function( index,element ) {

				element.srcsetSave = element.srcset;
				element.srcset = "#";
				if(!element.complete) {

					$(element).hide();
				}

			});

			FBZ.view.images.each(function( index,element ) {
				element.srcSave = element.src;
				element.src = "#";

			});
{'fraction_non_alphanumeric': 0.19387588013754709, 'fraction_numerical': 0.006713607335844114, 'mean_word_length': 3.5277983691623427, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1423665', 'n_tokens_mistral': 2607, 'n_tokens_neox': 2162, 'n_words': 350}