some improvement
This commit is contained in:
@@ -3999,7 +3999,7 @@ div.messages {
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
/* line 178, jee.scss */
|
/* line 178, jee.scss */
|
||||||
#main > .region, #main > .region > .block-system, #main > .region > .block-system > .content {
|
#main .block-system {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -4926,6 +4926,10 @@ body.chapter-displayed #footer {
|
|||||||
#footer p {
|
#footer p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
/* line 862, jee.scss */
|
||||||
|
#footer #block-block-1 {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
__ ____________ ______
|
__ ____________ ______
|
||||||
@@ -4934,7 +4938,7 @@ body.chapter-displayed #footer {
|
|||||||
/ / / // / ___/ / /___
|
/ / / // / ___/ / /___
|
||||||
/_/ /_/___//____/\____/
|
/_/ /_/___//____/\____/
|
||||||
*/
|
*/
|
||||||
/* line 869, jee.scss */
|
/* line 871, jee.scss */
|
||||||
#loader {
|
#loader {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -4951,13 +4955,13 @@ body.chapter-displayed #footer {
|
|||||||
-webkit-transition-property: opacity;
|
-webkit-transition-property: opacity;
|
||||||
transition-property: opacity;
|
transition-property: opacity;
|
||||||
}
|
}
|
||||||
/* line 880, jee.scss */
|
/* line 882, jee.scss */
|
||||||
body.loading #loader {
|
body.loading #loader {
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 886, jee.scss */
|
/* line 888, jee.scss */
|
||||||
#fullscreen-btn {
|
#fullscreen-btn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
@@ -4971,13 +4975,13 @@ body.loading #loader {
|
|||||||
background: transparent url("../assets/img/fullscreen-on.png") no-repeat center center;
|
background: transparent url("../assets/img/fullscreen-on.png") no-repeat center center;
|
||||||
background: none, url("../assets/img/fullscreen-on.svg") no-repeat center center;
|
background: none, url("../assets/img/fullscreen-on.svg") no-repeat center center;
|
||||||
}
|
}
|
||||||
/* line 895, jee.scss */
|
/* line 897, jee.scss */
|
||||||
.fullscreen #fullscreen-btn {
|
.fullscreen #fullscreen-btn {
|
||||||
background: transparent url("../assets/img/fullscreen-off.png") no-repeat center center;
|
background: transparent url("../assets/img/fullscreen-off.png") no-repeat center center;
|
||||||
background: none, url("../assets/img/fullscreen-off.svg") no-repeat center center;
|
background: none, url("../assets/img/fullscreen-off.svg") no-repeat center center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 908, jee.scss */
|
/* line 910, jee.scss */
|
||||||
.bubble-1 {
|
.bubble-1 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -4990,7 +4994,7 @@ body.loading #loader {
|
|||||||
left: -200px;
|
left: -200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 912, jee.scss */
|
/* line 914, jee.scss */
|
||||||
.bubble-2 {
|
.bubble-2 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -5003,7 +5007,7 @@ body.loading #loader {
|
|||||||
right: -400px;
|
right: -400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 917, jee.scss */
|
/* line 919, jee.scss */
|
||||||
.star {
|
.star {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
@@ -5021,7 +5025,7 @@ body.loading #loader {
|
|||||||
/ /_/ / /___/ /_/ / /_/ / /_/ /
|
/ /_/ / /___/ /_/ / /_/ / /_/ /
|
||||||
/_____/_____/_____/\____/\____/
|
/_____/_____/_____/\____/\____/
|
||||||
*/
|
*/
|
||||||
/* line 931, jee.scss */
|
/* line 933, jee.scss */
|
||||||
#fps {
|
#fps {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 40px;
|
bottom: 40px;
|
||||||
@@ -5029,7 +5033,7 @@ body.loading #loader {
|
|||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* line 937, jee.scss */
|
/* line 939, jee.scss */
|
||||||
#nav-cursor {
|
#nav-cursor {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 6px;
|
width: 6px;
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ div.messages{
|
|||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
&>.region, &>.region>.block-system, &>.region>.block-system>.content{
|
.block-system{
|
||||||
position:relative;
|
position:relative;
|
||||||
width:100%; height:100%;
|
width:100%; height:100%;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
@@ -858,6 +858,8 @@ div.messages{
|
|||||||
p{
|
p{
|
||||||
margin:0;
|
margin:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#block-block-1{display:none;}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
__ ____________ ______
|
__ ____________ ______
|
||||||
|
|||||||
@@ -172,6 +172,10 @@ jQuery(document).ready(function($) {
|
|||||||
})
|
})
|
||||||
.on('mouseup', function(e){
|
.on('mouseup', function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
if(e.target !== this)
|
||||||
|
return false;
|
||||||
|
|
||||||
console.log('document mouseup');
|
console.log('document mouseup');
|
||||||
|
|
||||||
if(_loaded_chapter || _loaded_static)
|
if(_loaded_chapter || _loaded_static)
|
||||||
@@ -207,7 +211,7 @@ jQuery(document).ready(function($) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.on('touchmove', function(e){
|
.on('touchmove', function(e){
|
||||||
// e.preventDefault();
|
e.preventDefault();
|
||||||
console.log('document touchmove');
|
console.log('document touchmove');
|
||||||
|
|
||||||
if(_loaded_chapter || _loaded_static)
|
if(_loaded_chapter || _loaded_static)
|
||||||
@@ -482,15 +486,16 @@ jQuery(document).ready(function($) {
|
|||||||
// click to preview chapter
|
// click to preview chapter
|
||||||
// $('h2.node-title, .field-name-field-partie:first>.field-name-field-vignette', this.$e)
|
// $('h2.node-title, .field-name-field-partie:first>.field-name-field-vignette', this.$e)
|
||||||
this.$e
|
this.$e
|
||||||
.on('click', this, function(e){
|
.on('click',this.preview.bind(this))
|
||||||
// e.stopImmediatePropagation();
|
// .on('click', this, function(e){
|
||||||
console.log('click on chapter');
|
// // e.stopImmediatePropagation();
|
||||||
e.stopPropagation();
|
// console.log('click on chapter');
|
||||||
e.preventDefault();
|
// e.stopPropagation();
|
||||||
|
// e.preventDefault();
|
||||||
|
|
||||||
e.data.preview(e);
|
// e.data.preview(e);
|
||||||
return false;
|
// return false;
|
||||||
});
|
// });
|
||||||
|
|
||||||
$('.links a', this.$e)
|
$('.links a', this.$e)
|
||||||
.on('click', this, function(e){
|
.on('click', this, function(e){
|
||||||
@@ -556,17 +561,21 @@ jQuery(document).ready(function($) {
|
|||||||
this.$e.translate3d({x:this.trans.x,y:this.trans.y});
|
this.$e.translate3d({x:this.trans.x,y:this.trans.y});
|
||||||
};
|
};
|
||||||
|
|
||||||
Chapter.prototype.preview = function(){
|
Chapter.prototype.preview = function(e){
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
console.log('preview : e',e);
|
||||||
|
console.log('preview : this',this);
|
||||||
|
|
||||||
// don't relaunch preview more that one time
|
// don't relaunch preview more that one time
|
||||||
if(this.is_previewed) return false;
|
if(this.is_previewed) return false;
|
||||||
|
|
||||||
_previewed_chapter = this;
|
console.log('is_previewed', this.is_previewed);
|
||||||
|
|
||||||
console.log('preview', this.i);
|
|
||||||
|
|
||||||
this.unMitigate();
|
|
||||||
|
|
||||||
this.is_previewed = true;
|
this.is_previewed = true;
|
||||||
|
_previewed_chapter = this;
|
||||||
|
|
||||||
|
this.unMitigate();
|
||||||
|
|
||||||
// close other chapters
|
// close other chapters
|
||||||
for (var i = _chapitres_len - 1; i >= 0; i--)
|
for (var i = _chapitres_len - 1; i >= 0; i--)
|
||||||
@@ -575,7 +584,7 @@ jQuery(document).ready(function($) {
|
|||||||
|
|
||||||
this.displayPreview();
|
this.displayPreview();
|
||||||
|
|
||||||
// moveToChapter(this);
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
Chapter.prototype.displayPreview = function(e){
|
Chapter.prototype.displayPreview = function(e){
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation to display a block.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
* - $block->subject: Block title.
|
||||||
|
* - $content: Block content.
|
||||||
|
* - $block->module: Module that generated the block.
|
||||||
|
* - $block->delta: An ID for the block, unique within each module.
|
||||||
|
* - $block->region: The block region embedding the current block.
|
||||||
|
* - $classes: String of classes that can be used to style contextually through
|
||||||
|
* CSS. It can be manipulated through the variable $classes_array from
|
||||||
|
* preprocess functions. The default values can be one or more of the
|
||||||
|
* following:
|
||||||
|
* - block: The current template type, i.e., "theming hook".
|
||||||
|
* - block-[module]: The module generating the block. For example, the user
|
||||||
|
* module is responsible for handling the default user navigation block. In
|
||||||
|
* that case the class would be 'block-user'.
|
||||||
|
* - $title_prefix (array): An array containing additional output populated by
|
||||||
|
* modules, intended to be displayed in front of the main title tag that
|
||||||
|
* appears in the template.
|
||||||
|
* - $title_suffix (array): An array containing additional output populated by
|
||||||
|
* modules, intended to be displayed after the main title tag that appears in
|
||||||
|
* the template.
|
||||||
|
*
|
||||||
|
* Helper variables:
|
||||||
|
* - $classes_array: Array of html class attribute values. It is flattened
|
||||||
|
* into a string within the variable $classes.
|
||||||
|
* - $block_zebra: Outputs 'odd' and 'even' dependent on each block region.
|
||||||
|
* - $zebra: Same output as $block_zebra but independent of any block region.
|
||||||
|
* - $block_id: Counter dependent on each block region.
|
||||||
|
* - $id: Same output as $block_id but independent of any block region.
|
||||||
|
* - $is_front: Flags true when presented in the front page.
|
||||||
|
* - $logged_in: Flags true when the current user is a logged-in member.
|
||||||
|
* - $is_admin: Flags true when the current user is an administrator.
|
||||||
|
* - $block_html_id: A valid HTML ID and guaranteed unique.
|
||||||
|
*
|
||||||
|
* @see template_preprocess()
|
||||||
|
* @see template_preprocess_block()
|
||||||
|
* @see template_process()
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
||||||
|
<?php print render($title_prefix); ?>
|
||||||
|
<?php if ($block->subject): ?>
|
||||||
|
<h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
|
||||||
|
<?php endif;?>
|
||||||
|
<?php print render($title_suffix); ?>
|
||||||
|
|
||||||
|
<?php print $content ?>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Default theme implementation to display a region.
|
||||||
|
*
|
||||||
|
* Available variables:
|
||||||
|
* - $content: The content for this region, typically blocks.
|
||||||
|
* - $classes: String of classes that can be used to style contextually through
|
||||||
|
* CSS. It can be manipulated through the variable $classes_array from
|
||||||
|
* preprocess functions. The default values can be one or more of the following:
|
||||||
|
* - region: The current template type, i.e., "theming hook".
|
||||||
|
* - region-[name]: The name of the region with underscores replaced with
|
||||||
|
* dashes. For example, the page_top region would have a region-page-top class.
|
||||||
|
* - $region: The name of the region variable as defined in the theme's .info file.
|
||||||
|
*
|
||||||
|
* Helper variables:
|
||||||
|
* - $classes_array: Array of html class attribute values. It is flattened
|
||||||
|
* into a string within the variable $classes.
|
||||||
|
* - $is_admin: Flags true when the current user is an administrator.
|
||||||
|
* - $is_front: Flags true when presented in the front page.
|
||||||
|
* - $logged_in: Flags true when the current user is a logged-in member.
|
||||||
|
*
|
||||||
|
* @see template_preprocess()
|
||||||
|
* @see template_preprocess_region()
|
||||||
|
* @see template_process()
|
||||||
|
*
|
||||||
|
* @ingroup themeable
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<?php if ($content): ?>
|
||||||
|
<?php print $content; ?>
|
||||||
|
<?php endif; ?>
|
||||||
Reference in New Issue
Block a user