Commit f528b4a8 authored by Zoggy's avatar Zoggy
Browse files

some fix in website

parent ab21af56
/* =============================================================
* bootstrap-collapse.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============================================================ */
!function( $ ){
"use strict"
var Collapse = function ( element, options ) {
this.$element = $(element)
this.options = $.extend({}, $.fn.collapse.defaults, options)
if (this.options["parent"]) {
this.$parent = $(this.options["parent"])
}
this.options.toggle && this.toggle()
}
Collapse.prototype = {
constructor: Collapse
, dimension: function () {
var hasWidth = this.$element.hasClass('width')
return hasWidth ? 'width' : 'height'
}
, show: function () {
var dimension = this.dimension()
, scroll = $.camelCase(['scroll', dimension].join('-'))
, actives = this.$parent && this.$parent.find('.in')
, hasData
if (actives && actives.length) {
hasData = actives.data('collapse')
actives.collapse('hide')
hasData || actives.data('collapse', null)
}
this.$element[dimension](0)
this.transition('addClass', 'show', 'shown')
this.$element[dimension](this.$element[0][scroll])
}
, hide: function () {
var dimension = this.dimension()
this.reset(this.$element[dimension]())
this.transition('removeClass', 'hide', 'hidden')
this.$element[dimension](0)
}
, reset: function ( size ) {
var dimension = this.dimension()
this.$element
.removeClass('collapse')
[dimension](size || 'auto')
[0].offsetWidth
this.$element.addClass('collapse')
}
, transition: function ( method, startEvent, completeEvent ) {
var that = this
, complete = function () {
if (startEvent == 'show') that.reset()
that.$element.trigger(completeEvent)
}
this.$element
.trigger(startEvent)
[method]('in')
$.support.transition && this.$element.hasClass('collapse') ?
this.$element.one($.support.transition.end, complete) :
complete()
}
, toggle: function () {
this[this.$element.hasClass('in') ? 'hide' : 'show']()
}
}
/* COLLAPSIBLE PLUGIN DEFINITION
* ============================== */
$.fn.collapse = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('collapse')
, options = typeof option == 'object' && option
if (!data) $this.data('collapse', (data = new Collapse(this, options)))
if (typeof option == 'string') data[option]()
})
}
$.fn.collapse.defaults = {
toggle: true
}
$.fn.collapse.Constructor = Collapse
/* COLLAPSIBLE DATA-API
* ==================== */
$(function () {
$('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) {
var $this = $(this), href
, target = $this.attr('data-target')
|| e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
, option = $(target).data('collapse') ? 'toggle' : $this.data()
$(target).collapse(option)
})
})
}( window.jQuery )
......@@ -102,7 +102,6 @@ Examples of web sites generated by Stog:
<ext-a href="http://zoggy.github.io/higlo/">Higlo</ext-a>,
<ext-a href="http://oclaunch.eu.org/">OcLaunch</ext-a>,
</li>
<li><ext-a href="http://www.saltimfo.com/">Le chameau saltimbanque</ext-a> (in french),</li>
<li><ext-a href="http://www.snesup-bourgogne.org">The SNESUP Bourgogne website</ext-a> (in french),</li>
<li><ext-a href="https://www.oranadoz.net/">Oranadoz</ext-a> (in french),</li>
<li><ext-a href="https://zoggy.good-eris.net/">Maxence Guesdon's site</ext-a>.</li>
......
This diff is collapsed.
......@@ -74,10 +74,10 @@ To generate the file corresponding to a document, <icode>stog</icode> will use t
the document (for example "post") to load the associated template (for example "post.tmpl" in
the templates directory).
</p>
<li>If the XML template file used for a document type specifies a DOCTYPE, it is used
<p>If the XML template file used for a document type specifies a DOCTYPE, it is used
in the final XML file. If DOCTYPE is "HTML" (case-insensitive), tags are not self-closed, except
<ext-a href="http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-documents">HTML5 void documents</ext-a>.
</li>
</p>
<p>You can have a look at the source of the pages of this site at the bottom of each page.
The sources of this site can be a good starting point. You can browse it in the
<ext-a href="https://framagit.org/zoggy/stog/blob/master/doc">doc directory of the
......@@ -85,4 +85,4 @@ distribution</ext-a>.
</p>
<hr width="100%"/>
<notes/>
</page>
\ No newline at end of file
</page>
......@@ -21,7 +21,7 @@ VIDEOS=v1-intro.mp4 \
all: videos
$(RM) videos
for i in $(VIDEOS); do echo "file $$i" >> videos; done
ffmpeg -auto_convert 1 -f concat -i videos -c copy -y v1.mp4
ffmpeg -auto_convert 1 -f concat -i videos -c copy -y ../v1.mp4
.PHONY: videos
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment