allow more than one scrolling text on one page
This commit is contained in:
parent
62b1308b02
commit
2e1d5999c6
4 changed files with 7 additions and 7 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function() {
|
function() {
|
||||||
$("#qtextbox").niceScroll({autohidemode:false,cursorcolor:"#c2beb9"});
|
$(".qtextbox").niceScroll({autohidemode:false,cursorcolor:"#c2beb9"});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<h1><?=$questgroup['title']?></h1>
|
<h1><?=$questgroup['title']?></h1>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if(count($texts) > 0): ?>
|
<?php if(count($texts) > 0): ?>
|
||||||
<div id="qtextbox">
|
<div class="qtextbox">
|
||||||
<?php foreach($texts as &$text) : ?>
|
<?php foreach($texts as &$text) : ?>
|
||||||
<p class="qtext"><?=\hhu\z\Utils::t($text['text'])?></p>
|
<p class="qtext"><?=\hhu\z\Utils::t($text['text'])?></p>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<?php if(array_key_exists('Prolog', $questtexts) && count($questtexts['Prolog']) > 0) : ?>
|
<?php if(array_key_exists('Prolog', $questtexts) && count($questtexts['Prolog']) > 0) : ?>
|
||||||
<section>
|
<section>
|
||||||
<h1 id="questtext"><?=_('Prolog')?></h1>
|
<h1 id="questtext"><?=_('Prolog')?></h1>
|
||||||
<div id="qtextbox">
|
<div class="qtextbox">
|
||||||
<?php $mediaShown = false; ?>
|
<?php $mediaShown = false; ?>
|
||||||
<?php foreach($questtexts['Prolog'] as &$questtext) : ?>
|
<?php foreach($questtexts['Prolog'] as &$questtext) : ?>
|
||||||
<p class="qtext cf">
|
<p class="qtext cf">
|
||||||
|
|
@ -72,7 +72,7 @@
|
||||||
<?php if(array_key_exists('Epilog', $questtexts) && count($questtexts['Epilog']) > 0) : ?>
|
<?php if(array_key_exists('Epilog', $questtexts) && count($questtexts['Epilog']) > 0) : ?>
|
||||||
<section>
|
<section>
|
||||||
<h1 id="questtext"><?=_('Epilog')?></h1>
|
<h1 id="questtext"><?=_('Epilog')?></h1>
|
||||||
<div id="qtextbox">
|
<div class="qtextbox">
|
||||||
<?php foreach($questtexts['Epilog'] as &$questtext) : ?>
|
<?php foreach($questtexts['Epilog'] as &$questtext) : ?>
|
||||||
<p class="qtext cf">
|
<p class="qtext cf">
|
||||||
<?php if(array_key_exists('media', $questtext)) : ?>
|
<?php if(array_key_exists('media', $questtext)) : ?>
|
||||||
|
|
@ -83,10 +83,10 @@
|
||||||
<?php if(count($questtext['relatedQuestsgroups']) > 0 || !empty($questtext['abort_text'])) : ?>
|
<?php if(count($questtext['relatedQuestsgroups']) > 0 || !empty($questtext['abort_text'])) : ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($questtext['relatedQuestsgroups'] as &$relatedQuestgroup) : ?>
|
<?php foreach($questtext['relatedQuestsgroups'] as &$relatedQuestgroup) : ?>
|
||||||
<li><a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$relatedQuestgroup['url']))?>"><?=$relatedQuestgroup['entry_text']?></a></li>
|
<li><p><a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$relatedQuestgroup['url']))?>"><?=$relatedQuestgroup['entry_text']?></a></p></li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php if(!empty($questtext['abort_text'])) : ?>
|
<?php if(!empty($questtext['abort_text'])) : ?>
|
||||||
<li><a href="<?=$linker->link(array('quest',$seminary['url'],$relatedquesttext['quest']['questgroup_url'],$relatedquesttext['quest']['url'],$relatedquesttext['type_url']),1)?>"><?=$questtext['abort_text']?></a></li>
|
<li><p><a href="<?=$linker->link(array('quest',$seminary['url'],$relatedquesttext['quest']['questgroup_url'],$relatedquesttext['quest']['url'],$relatedquesttext['type_url']),1)?>"><?=$questtext['abort_text']?></a></p></li>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ aside{display:none}
|
||||||
.qglist .qgtitle .bonus{background:#f5821f}
|
.qglist .qgtitle .bonus{background:#f5821f}
|
||||||
.qglist .qgtitle .bonus:hover{background:#f68e34}
|
.qglist .qgtitle .bonus:hover{background:#f68e34}
|
||||||
|
|
||||||
#qtextbox{font-size:.875em;border-radius:5px;background:#fff;border:15px solid #fff;max-height:200px;overflow:hidden}
|
.qtextbox{font-size:.875em;border-radius:5px;background:#fff;border:15px solid #fff;max-height:200px;overflow:hidden}
|
||||||
.qtext{padding-right:15px}
|
.qtext{padding-right:15px}
|
||||||
.qtext img,.grpqimg{float:right;margin-left:15px;max-width:30%;max-height:200px;border-radius:3px}
|
.qtext img,.grpqimg{float:right;margin-left:15px;max-width:30%;max-height:200px;border-radius:3px}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue