Commit 29880ba8 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

merged build.xml

parents c842fbdb 346c75d1
project.version=1.0.3
project.version=1.1
......@@ -22,20 +22,23 @@
</target>
<target name="fastdeploy">
<replace file="${basedir}/post-install.xql" token="$notebooks := $notebooks" value="$notebooks := 'textgrid:16b00'"/>
<antcall target="xar"/>
<!-- and undo this stuff -->
<replace file="${basedir}/post-install.xql" token="$notebooks := 'textgrid:16b00'" value="$notebooks := $notebooks"/>
<replace file="${basedir}/post-install.xql" token="$notebooks := $notebooks" value="$notebooks := 'textgrid:16b00'"/>
<antcall target="xar"/>
<!-- and undo this stuff -->
<replace file="${basedir}/post-install.xql" token="$notebooks := 'textgrid:16b00'" value="$notebooks := $notebooks"/>
</target>
<target name="productive">
<target name="productive" description="provides a production ready build">
<property name="replacetoken" value="$notebooks := ('textgrid:16b00', 'textgrid:1zzdp', 'textgrid:1zzdq')" />
<replace file="${basedir}/post-install.xql" token="$notebooks := $notebooks" value="${replacetoken}"/>
<antcall target="xar"/>
<!-- and undo this stuff -->
<replace file="${basedir}/post-install.xql" token="${replacetoken}" value="$notebooks := $notebooks"/>
<patch patchfile="resources/conf-xml-productive.patch" dir="sade-projects/textgrid" />
<replace file="${basedir}/post-install.xql" token="$notebooks := $notebooks" value="${replacetoken}"/>
<antcall target="xar"/>
<!-- and undo this stuff -->
<replace file="${basedir}/post-install.xql" token="${replacetoken}" value="$notebooks := $notebooks"/>
<patch patchfile="resources/conf-xml-productive.patch" dir="sade-projects/textgrid" reverse="true" />
</target>
</project>
xquery version "3.1";
declare variable $start := "/db";
declare function local:recursive($param) {
for $col in xmldb:get-child-collections($param)
let $path := $param || "/" || $col
return
(
local:recursive($path),
xmldb:get-child-resources($path) ! ( $path || "/" || .)
)
};
for $i in local:recursive($start)
let $tok := tokenize( $i, "/" )
let $tokCnt := count($tok)
let $datTime := xmldb:last-modified(string-join($tok[ position() != last() ], "/"), $tok[last()])
where not( contains( $i, "data/xml/" ) )
order by $datTime descending
return
(
$i,
$datTime
)
--- config.xml
+++ config.xml
@@ -23,7 +23,7 @@
<param key="textgrid.sidcachepath.password"/><!-- parameters for MODULES -->
<param key="textgrid.digilib">https://textgridlab.org/1.0/digilib/rest/digilib</param>
<param key="textgrid.digilib.tile">dw=100&amp;dh=100</param>
- <param key="sade.develop">true</param>
+ <param key="sade.develop">false</param>
<param key="dokuwiki.url">http://www.eromm.org/dcgkb</param>
<param key="dokuwiki.user">TODO</param>
<param key="dokuwiki.password">TODO</param>
......@@ -5,14 +5,14 @@ declare option exist:serialize "method=text media-type=text/css omit-xml-declara
(for $tei in collection('/db/sade-projects/textgrid/data/xml/data')/tei:TEI
let $nb := substring-after($tei//tei:sourceDoc/@n, 'er_')
return
('#' || $nb || ' > .rowWrapper > .surface {
('#' || $nb || ' .sourceDoc > .surface {
height:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'leaf']/tei:height[1]/@quantity)||'mm;
width:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'leaf']/tei:width[1]/@quantity)||'mm;}
',
'#' || $nb || '> .rowWrapper #spine {
'#' || $nb || ' .sourceDoc > #spine {
width:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'binding']/tei:depth[1]/@quantity)||'mm;}
',
'#' || $nb || '> .rowWrapper > #outer_back_cover, #'|| $nb || '> .rowWrapper > #outer_front_cover {
'#' || $nb || ' .sourceDoc > #outer_back_cover, #'|| $nb || ' .sourceDoc > #outer_front_cover {
height:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'binding']/tei:height[1]/@quantity)||'mm;
max-height:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'binding']/tei:height[1]/@quantity)||'mm !important;
width:' ||string($tei//tei:extent[1]/tei:dimensions[@type = 'binding']/tei:width[1]/@quantity)||'mm;}
......@@ -20,10 +20,7 @@ return
'#' || $nb || ' div.facs {
height:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'leaf']/tei:height[1]/@quantity)||'mm;
width:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'leaf']/tei:width[1]/@quantity)||'mm;}
',
'#' || $nb || ' div.teixml {
height:'||string($tei//tei:extent[1]/tei:dimensions[@type = 'leaf']/tei:height[1]/@quantity)||'mm;
}'
'
) (: return :)
) (: for :)
,
......@@ -49,18 +46,11 @@ return
.teixml {
position: relative;
display:none;
overflow-y:scroll;
/* overflow-y:scroll; < golden Layout */
}
pre {border:none;}
#toc{
position: fixed;
right:0;
height: 75%;
overflow-y: scroll;
background-color: #DEDEDE;
z-index:1;
}
/* we should move these styles to the static custom.css */
#toc > ol {
list-style: none;
padding: 10px;}
......@@ -77,20 +67,14 @@ pre {border:none;}
#tocBtn .fa-plus { padding-left: 1px;
}
.TEI {margin-left:10%;}
.TEI * {
transform-origin: left top;
-webkit-transform-origin: left top;}
.sourceDoc{
.surface{
font-family: Fontine;
/* font-size: 1.25em; */
font-size:medium;
line-height: 1cm;
color: darkslategrey;
border-color: darkslategrey;
stroke: darkslategrey;
fill: darkslategrey;
/* text-rendering: geometricPrecision; */
}
.surface {
position:relative;
......@@ -101,15 +85,12 @@ pre {border:none;}
background-image: none;
background-color: rgba(255, 239, 213, 0.4);
}
.sourceDoc > .rowWrapper > .surface {
margin-bottom:1cm;
margin-left:1cm;
float:left;
left: 0 !important;
.surface ~ .surface {
display: none;
}
.sourceDoc > .rowWrapper .facs {
margin-bottom:1cm;
float:left;
/* show labels */
.surface.teilabel.nested {
display: block;
}
img.facs {
......@@ -151,7 +132,10 @@ div.zone.figure > div.zone {
font-size: 80%;
vertical-align: super;
}
.zone {
transform-origin: left top;
-webkit-transform-origin: left top;
}
.zone .zone {
width:inital;
}
......@@ -462,7 +446,7 @@ svg {
/* refine surface background in case of a label */
.surface.teilabel {background:none;}
.sourceDoc > div > .surface > .surface.teilabel {
.sourceDoc > .surface > .surface.teilabel {
background-color: rgba(100, 100, 100, 0.4);
}
#outer_front_cover div.surface.teilabel div.zone div.line {
......
......@@ -1920,3 +1920,22 @@ pre {border-radius:0;}
margin-top: 15px;
margin-bottom:30px;
}
/* use a different cursor then "text" on nb-title, because a click triggers golden layout reset */
#nb-title{
cursor:no-drop;
}
.xmlTitle {
font-size:18px;
font-weight: 300;
text-transform: uppercase;
}
pre {
background-color:inherit;
}
/*.lm_active .lm_title {*/
/* color: #B6473D;*/
/*}*/
\ No newline at end of file
.lm_root{position:relative}.lm_row>.lm_item{float:left}.lm_content{overflow:hidden;position:relative}.lm_dragging,.lm_dragging *{cursor:move !important;user-select:none}.lm_maximised{position:absolute;top:0;left:0;z-index:40}.lm_maximise_placeholder{display:none}.lm_splitter{position:relative;z-index:20}.lm_splitter:hover,.lm_splitter.lm_dragging{background:orange}.lm_splitter.lm_vertical .lm_drag_handle{width:100%;height:15px;position:absolute;top:-5px;cursor:ns-resize}.lm_splitter.lm_horizontal{float:left;height:100%}.lm_splitter.lm_horizontal .lm_drag_handle{width:15px;height:100%;position:absolute;left:-5px;cursor:ew-resize}.lm_header{overflow:visible;position:relative;z-index:1}.lm_header [class^=lm_]{box-sizing:content-box !important}.lm_header .lm_controls{position:absolute;right:3px}.lm_header .lm_controls>li{cursor:pointer;float:left;width:18px;height:18px;text-align:center}.lm_header ul{margin:0;padding:0;list-style-type:none}.lm_header .lm_tabs{position:absolute}.lm_header .lm_tab{cursor:pointer;float:left;height:14px;margin-top:1px;padding:0 10px 5px;padding-right:25px;position:relative}.lm_header .lm_tab i{width:2px;height:19px;position:absolute}.lm_header .lm_tab i.lm_left{top:0;left:-2px}.lm_header .lm_tab i.lm_right{top:0;right:-2px}.lm_header .lm_tab .lm_title{display:inline-block;overflow:hidden;text-overflow:ellipsis}.lm_header .lm_tab .lm_close_tab{width:14px;height:14px;position:absolute;top:0;right:0;text-align:center}.lm_stack.lm_left .lm_header,.lm_stack.lm_right .lm_header{height:100%}.lm_dragProxy.lm_left .lm_header,.lm_dragProxy.lm_right .lm_header,.lm_stack.lm_left .lm_header,.lm_stack.lm_right .lm_header{width:20px;float:left;vertical-align:top}.lm_dragProxy.lm_left .lm_header .lm_tabs,.lm_dragProxy.lm_right .lm_header .lm_tabs,.lm_stack.lm_left .lm_header .lm_tabs,.lm_stack.lm_right .lm_header .lm_tabs{transform-origin:left top;top:0;width:1000px}.lm_dragProxy.lm_left .lm_header .lm_controls,.lm_dragProxy.lm_right .lm_header .lm_controls,.lm_stack.lm_left .lm_header .lm_controls,.lm_stack.lm_right .lm_header .lm_controls{bottom:0}.lm_dragProxy.lm_left .lm_items,.lm_dragProxy.lm_right .lm_items,.lm_stack.lm_left .lm_items,.lm_stack.lm_right .lm_items{float:left}.lm_dragProxy.lm_left .lm_header .lm_tabs,.lm_stack.lm_left .lm_header .lm_tabs{transform:rotate(-90deg) scaleX(-1);left:0}.lm_dragProxy.lm_left .lm_header .lm_tabs .lm_tab,.lm_stack.lm_left .lm_header .lm_tabs .lm_tab{transform:scaleX(-1);margin-top:1px}.lm_dragProxy.lm_left .lm_header .lm_tabdropdown_list,.lm_stack.lm_left .lm_header .lm_tabdropdown_list{top:initial;right:initial;left:20px}.lm_dragProxy.lm_right .lm_content{float:left}.lm_dragProxy.lm_right .lm_header .lm_tabs,.lm_stack.lm_right .lm_header .lm_tabs{transform:rotate(90deg) scaleX(1);left:100%;margin-left:0}.lm_dragProxy.lm_right .lm_header .lm_controls,.lm_stack.lm_right .lm_header .lm_controls{left:3px}.lm_dragProxy.lm_right .lm_header .lm_tabdropdown_list,.lm_stack.lm_right .lm_header .lm_tabdropdown_list{top:initial;right:20px}.lm_dragProxy.lm_bottom .lm_header .lm_tab,.lm_stack.lm_bottom .lm_header .lm_tab{margin-top:0;border-top:none}.lm_dragProxy.lm_bottom .lm_header .lm_controls,.lm_stack.lm_bottom .lm_header .lm_controls{top:3px}.lm_dragProxy.lm_bottom .lm_header .lm_tabdropdown_list,.lm_stack.lm_bottom .lm_header .lm_tabdropdown_list{top:initial;bottom:20px}.lm_drop_tab_placeholder{float:left;width:100px;height:10px;visibility:hidden}.lm_header .lm_controls .lm_tabdropdown:before{content:'';width:0;height:0;vertical-align:middle;display:inline-block;border-top:5px dashed;border-right:5px solid transparent;border-left:5px solid transparent;color:white}.lm_header .lm_tabdropdown_list{position:absolute;top:20px;right:0;z-index:5;overflow:hidden}.lm_header .lm_tabdropdown_list .lm_tab{clear:both;padding-right:10px;margin:0}.lm_header .lm_tabdropdown_list .lm_tab .lm_title{width:100px}.lm_header .lm_tabdropdown_list .lm_close_tab{display:none !important}.lm_dragProxy{position:absolute;top:0;left:0;z-index:30}.lm_dragProxy .lm_header{background:transparent}.lm_dragProxy .lm_content{border-top:none;overflow:hidden}.lm_dropTargetIndicator{display:none;position:absolute;z-index:20}.lm_dropTargetIndicator .lm_inner{width:100%;height:100%;position:relative;top:0;left:0}.lm_transition_indicator{display:none;width:20px;height:20px;position:absolute;top:0;left:0;z-index:20}.lm_popin{width:20px;height:20px;position:absolute;bottom:0;right:0;z-index:9999}.lm_popin>*{width:100%;height:100%;position:absolute;top:0;left:0}.lm_popin>.lm_bg{z-index:10}.lm_popin>.lm_icon{z-index:20}/*# sourceMappingURL=goldenlayout-base.css.map */
\ No newline at end of file
.lm_goldenlayout {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAGFBMVEX29vb19fXw8PDy8vL09PTz8/Pv7+/x8fGKuegbAAAAyUlEQVR42pXRQQ7CMBRDwST9pfe/MahEmgURbt7WmpVb6+vG0dd9REnn66xRy/qXiCgmEIIJhGACIZhACCYQgvlDCDFIEAwSBIMEwSBBMEgQDBIEgwTBIEEwCJEMQiSDENFMQmQzCZEbNyGemd6KeGZ6u4hnXe2qbdLHFjhf1XqNLXHev4wdMd9nspiEiWISJgqECQJhgkCYIBAmCIQJAmGCQJggECYJhAkCEUMEwhCBMEQgDJEIQ2RSg0iEIRJhiB/S+rrjqvXQ3paIJUgPBXxiAAAAAElFTkSuQmCC)
}
.lm_content {
background: #e1e1e1;
border: 1px solid #cccccc
}
.lm_dragProxy .lm_content {
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
box-sizing: border-box
}
.lm_dropTargetIndicator {
box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
outline: 1px dashed #cccccc;
margin: 1px;
transition: all 200ms ease
}
.lm_dropTargetIndicator .lm_inner {
background: #000000;
opacity: .1
}
.lm_splitter {
background: #999999;
opacity: .001;
transition: opacity 200ms ease
}
.lm_splitter:hover,
.lm_splitter.lm_dragging {
background: #bbbbbb;
opacity: 1
}
.lm_header {
height: 20px
}
.lm_header.lm_selectable {
cursor: pointer
}
.lm_header .lm_tab {
font-family: Arial, sans-serif;
font-size: 12px;
color: #888888;
background: #fafafa;
margin-right: 2px;
padding-bottom: 4px;
border: 1px solid #cccccc;
border-bottom: none
}
.lm_header .lm_tab .lm_title {
padding-top: 1px
}
.lm_header .lm_tab .lm_close_tab {
width: 11px;
height: 11px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAIklEQVR4nGNgYGD4z4Ad/Mdg4ODDBXCZRFgCp5EEHQMXBwAQAgz0SVCcggAAAABJRU5ErkJggg==);
background-position: center center;
background-repeat: no-repeat;
right: 6px;
top: 4px;
opacity: .4
}
.lm_header .lm_tab .lm_close_tab:hover {
opacity: 1
}
.lm_header .lm_tab.lm_active {
border-bottom: none;
box-shadow: 2px -2px 2px -2px rgba(0, 0, 0, 0.2);
padding-bottom: 5px
}
.lm_header .lm_tab.lm_active .lm_close_tab {
opacity: 1
}
.lm_dragProxy.lm_bottom .lm_header .lm_tab.lm_active,
.lm_stack.lm_bottom .lm_header .lm_tab.lm_active {
box-shadow: 2px 2px 2px -2px rgba(0, 0, 0, 0.2)
}
.lm_selected .lm_header {
background-color: #452500
}
.lm_tab:hover,
.lm_tab.lm_active {
background: #e1e1e1;
color: #777777
}
.lm_header .lm_controls .lm_tabdropdown:before {
color: #000000
}
.lm_controls>li {
position: relative;
background-position: center center;
background-repeat: no-repeat;
opacity: .4;
transition: opacity 300ms ease
}
.lm_controls>li:hover {
opacity: 1
}
.lm_controls .lm_popout {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAANUlEQVR4nI2QMQoAMAwCz5L/f9mOzZIaN0E9UDyZhaaQz6atgBHgambEJ5wBKoS0WaIvfT+6K2MIECN19MAAAAAASUVORK5CYII=)
}
.lm_controls .lm_maximise {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAIklEQVR4nGNkYGD4z0AAMBFSAAOETPpPlEmDUREjAxHhBABPvAQLFv3qngAAAABJRU5ErkJggg==)
}
.lm_controls .lm_close {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAKUlEQVR4nGNgYGD4z4Af/Mdg4FKASwCnDf8JKSBoAtEmEXQTQd8RDCcA6+4Q8OvIgasAAAAASUVORK5CYII=)
}
.lm_maximised .lm_header {
background-color: #ffffff
}
.lm_maximised .lm_controls .lm_maximise {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAJklEQVR4nGP8//8/AyHARFDFUFbEwsDAwMDIyIgzHP7//89IlEkApSkHEScJTKoAAAAASUVORK5CYII=)
}
.lm_transition_indicator {
background-color: #000000;
border: 1px dashed #555555
}
.lm_popin {
cursor: pointer
}
.lm_popin .lm_bg {
background: #000000;
opacity: .7
}
.lm_popin .lm_icon {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAJCAYAAADpeqZqAAAAWklEQVR4nJWOyw3AIAxDHcQC7L8jbwT3AlJBfNp3SiI7dtRaLSlKKeoA1oEsKSQZCEluexw8Tm3ohk+E7bnOUHUGcNh+HwbBygw4AZ7FN/Lt84p0l+yTflV8AKQyLdcCRJi/AAAAAElFTkSuQmCC);
background-position: center center;
background-repeat: no-repeat;
opacity: .7
}
.lm_popin:hover .lm_icon {
opacity: 1
}
/*# sourceMappingURL=goldenlayout-light-theme.css.map */
/* customizationzzzzzz: */
#goldenEdition {
height: calc(100vh - 150px);
}
.ffacs, .ftran {margin:20px;}
body .lm_content{
overflow: auto;
}
.lm_splitter.lm_horizontal .lm_drag_handle {
width: 10px;
left: 0;
}
.lm_header .lm_tab {
height: 24px;
}
.lm_header .lm_tab {
font-family: "Lato", sans-serif;
font-size: 16px;
font-weight:300;
}
.lm_goldenlayout {
background: none;
}
\ No newline at end of file
......@@ -7,15 +7,8 @@
<!-- app:nav includes navigation buttons (arrows) in case of pagewise rendering -->
<div data-template="f-misc:pageNav"/>
<div data-template="f-misc:content"/>
<!-- <div class="col-xs-2 inactive">-->
<!-- <h1 class="animated slideInRight">-->
<!-- <span>-->
<!-- <i class="fa fa-plus"/>-->
<!-- </span>-->
<!-- </h1>-->
<!-- </div>-->
<div class="col-xs-5 col-md-2">
<h1 id="tocBtn" class="animated slideInRight inactive">
<h1 id="tocBtn" class="animated slideInRight">
<span>
<i class="fa fa-list"/>
</span>
......@@ -41,15 +34,23 @@
</div>
<div class="section-header animated slideInTop" id="infoView" style="display:none; position:fixed; z-index:100; width: 100%;margin-top: 49px;">
<div class="container">
&#160;Informationen zu Schreiberhänden/Schreibmedien und anderen Details erhalten Sie durch Bewegen der Maus über Transkription/Edierter Text.
 Informationen zu Schreiberhänden/Schreibmedien und anderen Details erhalten Sie durch Bewegen der Maus über Transkription/Edierter Text.
</div>
</div>
<div id="helperUnderSectionHeader" style="height: 75px;"/>
<div data-template="mviewer:show" data-template-id="index.md" data-template-view="edition"/>
<div class="row" data-template="f-render:initView">
<div id="GEwrapper">
<div id="goldenEdition"/>
</div>
<!-- <div class="ffacs gl_keep" data-template="f-render:facs"/>-->
<!-- <div class="ftran gl_keep" data-template="f-render:tran"/>-->
<!-- <div class="fcode gl_keep" data-template="f-render:code"/>-->
</div>
</div>
<div id="tooltip"/>
<div data-template="f-misc:ToolbarExtended"/>
<script>
$.getScript('js/jquery.lazyload.min.js',function(){$('.imgLazy').lazyload({});});
</script>
</div>
<script src="js/goldenconfig.js"/>
</div>
\ No newline at end of file
......@@ -44,9 +44,18 @@
<button type="button" class="btn btn-default btn-md btn-block">Interview zur digitalen Notizbuch-Edition</button>
</a>
<br/>
<!-- shows messages regarding TextGrid Services -->
<div data-template="f-misc:textgridStatus"/>
<div class="info-board info-board-orange">
<h4>Information</h4>
<p>Am 8. Dezember 2015 wurde das erste Notizbuch (<a href="kaesten.html?n=c">C7</a>) in einer <em>Beta</em>-Version veröffentlicht (Digitalisate, Transkription, TEI/XML-Ansicht, Inhaltsverzeichnis).</p>
<p>Am 6. Oktober 2016 wurde die <a href="/doku.html">Editorische Gesamtdokumentation</a> in einer Beta-Version publiziert.
Sie umfasst das Gesamtkonzept der digitalen Fontane-Edition aufgrund der etwa 10.000 Notizbuchseiten.</p>
<p>Am 14. Juli 2016 wurden die Notizbücher <a href="kaesten.html?n=c5"><em>C5</em></a> und <a href="kaesten.html?n=c6">
<em>C6</em></a> in einer <em>Beta</em>-Version veröffentlicht (Digitalisate, Transkription, TEI/XMl-Ansicht, Überblickskommentar, Inhaltsverzeichnis, Datierungen und Entitäten).</p>
<p>Am 8. Dezember 2015 wurde das Notizbuch <a href="kaesten.html?n=c7">
<em>C7</em>
</a> in einer <em>Beta</em>-Version veröffentlicht (Digitalisate, Transkription, TEI/XML-Ansicht, Inhaltsverzeichnis).</p>
</div>
</div><!-- Last updated
================== -->
......
......@@ -37,15 +37,7 @@ function highlight(id) {
$('#'+id).toggleClass('highlight');
}
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
// $('span[title]').tooltip({
// delay: 50,
// container: 'div#infoView'
// });
$('[data-info]').mouseenter(function(){
$( "div#infoView > .container" ).html('&#160;');
$('div#infoView > .container').append( $(this).attr('data-info') );
$('[data-toggle="tooltip"]').tooltip();
});
$( document ).ready(function() {
......@@ -63,28 +55,6 @@ $( document ).ready(function() {
}
if (getCookie('milestone').indexOf('inactive') == -1 && getCookie('milestone').length > 0) { $(".milestone").toggle(); }
if (getCookie('ref').indexOf('block') > -1) { $( '.href' ).toggle(); }
// check for an addition outside of the surface
var minOffset = $('.surface').offset().left;
$('*[style*="left:-"]').each(function () {
var thisOffset = $(this).offset().left;
var newVal = minOffset - thisOffset;
if ( thisOffset < minOffset ) {
$(this).css('margin-left', newVal + 'px');
}
}
);
var minOffset = $('.surface').offset().top;
console.log(minOffset);
$('*[style*="left:-"]').each(function () {
var thisOffset = $(this).offset().top;
var newVal = minOffset - thisOffset;
if (thisOffset < minOffset) {
$(this).css('margin-left', newVal + 'px');
}
}
);
$('#facs').click(function() {
$( this ).toggleClass( "inactive" );
$(".surface").toggleClass("surfacefacs");
......@@ -97,39 +67,93 @@ $( document ).ready(function() {
});
$('#facsBtn').click(function() {
$( this ).toggleClass( "inactive" );
$(".facs").toggle();
var y = $(window).scrollTop(); //current y position
$(window).scrollTop(y+1);
$(window).scrollTop(y-1);
var status = $( this ).attr('class');
createCookie('facs', status, 180);
// true = on
var status = $( this ).attr('class').indexOf("inactive") < 0;
if( status === true ){
if (myLayout.root.getItemsByType("component").length > 1) {
$( this ).toggleClass( "inactive" );
goldenDestroy( "facs" );
}
}
else {
$( this ).toggleClass( "inactive" );
goldenActivate( "facs" );
}
});
$('#transBtn').click(function() {
$( this ).toggleClass( "inactive" );
$( '.surface' ).toggle();
var status = $( this ).attr('class');
createCookie('trans',status, 180) ;
// true = on
var status = $( this ).attr('class').indexOf("inactive") < 0;
if( status === true ){
if (myLayout.root.getItemsByType("component").length > 1) {
$( this ).toggleClass( "inactive" );
goldenDestroy( "tran" );
}
}
else {
$( this ).toggleClass( "inactive" );
goldenActivate( "tran" );
}
});
$('#xmlBtn').click(function() {
$( this ).toggleClass( "inactive" );
$( '.teixml' ).toggle();
var status = $( this ).attr('class');
createCookie('xml',status,180);
// true = on
var status = $( this ).attr('class').indexOf("inactive") < 0;
if( status === true ){
if (myLayout.root.getItemsByType("component").length > 1) {
$( this ).toggleClass( "inactive" );
goldenDestroy( "code" );
}
}
else {
$( this ).toggleClass( "inactive" );
goldenActivate( "code" );
}
});
$('#tocBtn').click(function() {
// true = on
var status = $( this ).attr('class').indexOf("inactive") < 0;
if( status === true ){
if (myLayout.root.getItemsByType("component").length > 1) {
$( this ).toggleClass( "inactive" );
goldenDestroy( "toc" );
}
}
else {
$( this ).toggleClass( "inactive" );
goldenActivate( "toc" );
}
});
$('#btns').click(function() {
$( this ).toggleClass( "inactive" );
$("#buttons").toggle();
$('#helperUnderSectionHeader').toggleClass('doubleHelper');
// true = on
if( $('#infoViewer').attr("class").indexOf("inactive") === -1) {
infoAction();
btnsAction();
}
else { btnsAction(); }
});
function btnsAction() {
$( '#btns' ).toggleClass( "inactive" );
$("#buttons").toggle();
$('#helperUnderSectionHeader').toggleClass('doubleHelper');
}
function infoAction() {
$('#infoViewer').toggleClass( "inactive" );
$("#infoView").toggle();
$('#helperUnderSectionHeader').toggleClass('doubleHelper');
}