Commit 869c942a authored by Thiago H. S. Picharski's avatar Thiago H. S. Picharski

Merge remote branch 'ubiquity-slideshow-le/master'

Signed-off-by: 's avatarThiago H. S. Picharski <thsp08@c3sl.ufpr.br>
parents 6fef4006 c1b82136
#!/bin/bash
# gerar.sh
# Copyright (c) 2006 by Bruno Ribas <ribas@ufpr.br>
DIRTMP=$(mktemp -d)
VERSAO=$(cat VERSAO)
#arrumar versao
#$1 tipo de incremento
MAJOR=$(echo $VERSAO| cut -d'.' -f1)
MINOR=$(echo $VERSAO| cut -d'.' -f2)
REVISION=$(echo $VERSAO| cut -d'.' -f3)
case $1 in
Minor)
((MINOR++))
REVISION=0
;;
Major)
((MAJOR++))
MINOR=0
REVISION=0
;;
help)
echo "Uso: $0 Major|Minor|Revision"
echo ' Major - Altera versao Major'
echo ' Minor - Altera versao Minor'
exit
;;
*)
((REVISION++))
;;
esac
VERSAO="${MAJOR}.${MINOR}.${REVISION}"
echo "$VERSAO" > VERSAO
#Compila a documentacao do pacote no diretorio doc/
#cd doc/
#hevea -text *.tex
#hevea -text *.tex
#cd ../
cp -r pacote $DIRTMP
#Copia a documentacao compilada para dentro do pacote.
#cp doc/*.txt $DIRTMP/pacote/usr/share/doc/prd-*
cd $DIRTMP
find . -name ".svn" -exec rm -rf {} \; &>/dev/null
sed -i -e "s/Version:/Version: $VERSAO/" pacote/DEBIAN/control
fakeroot dpkg -b pacote .
cd -
cp $DIRTMP/*deb .
rm -rf $DIRTMP
# vim:tabstop=4:shiftwidth=4:encoding=iso-8859-1
Package: ubiquity-slideshow-le
Version:
Architecture: all
Conflicts: ubiquity-slideshow, ubiquity-slideshow-kubuntu
Priority: important
Section: x11
Source: ubiquity-slideshow-ubuntu
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: Ubiquity slideshow for LE
# Linux Educacional 4.0
C3SL - Centro de Computacao Cientifica e Software Livre
Adriano da Luz
Bruno Cesar Ribas
Carlos Carvalho
Cleide Luzia Bonfim Possamai
Daniel Weingaertner
Danilo Kiyoshi Simizu Yorinori
Diego Giovane Pasqualin
Eduardo Cunha de Almeida
Erik Alexandre Pucci
Fabiano Silva
Felipe Cys Laskoski
Guilherme Zasyeki Machado
Jorge Augusto Meira
Josiney de Souza
Juliana Bueno
Klismann Smoger Mottin
Laura Sánchez García
Luis Carlos Erpen de Bona
Marcela Saragioto
Marcos Castilho
Marcos Sunye
Pedro Eugenio Rocha
Renan Franca De Miranda
Ricardo Tavares De Oliveira
Rubens Massayuki Suguimoto
Thiago Henrique Dos Santos Picharski
Tiago Rodrigo Kepe
Victor Tarabola Cortiano
Vinicius Kwiecien Ruoso
This diff is collapsed.
<h1 class="title">Domínio Público</h1>
<div class="main">
<div class="content">
<ul>
<li>O portal Domínio Público é a maior biblioteca virtual do Brasil.</li>
<li>Conta com mais de 123 mil obras e oferece acesso de graça a obras
literárias, artísticas e científicas em vários formatos: textos, sons,
imagens e vídeos.</li>
<li>O conteúdo disponível neste Portal ou é já de domínio público ou
tem o seu uso e a sua divulgação autorizados.</li>
</ul>
</div>
</div>
<img class="edubar" src="icons/dm-publico.png" alt="" />
<h1 class="title">Edubar</h1>
<div class="main">
<div class="content">
<ul>
<li>A nova Edubar oferece acesso direto aos conteúdos educacionais do MEC, assim como aos sites dos diversos projetos do MEC que coordenam a sua elaboração.</li>
<li>Com os conteúdos localmente acessíveis (a versão LE 4.0 já incorpora estes conteúdos na instalação), você pode buscar material do seu interesse por meio da nova ferramenta de Busca.</li>
<li>No caso de algum (ou todo) o material não estar acessível localmente, a Edubar terá um ícone para <em>download</em>.</li>
<!--<li>Você também tem acesso pela Edubar, via Internet - sinalizada pelo (globinho), aos portais dos projetos de conteúdos educacionais do MEC: Domínio Público, TV Escola, Portal do Professor e Banco Internacional de Objetos Educacionais.</li>-->
</ul>
</div>
</div>
<img class="edubar" src="icons/edubar.png" alt="" />
<h1 class="title">Ajuda no LE</h1>
<div class="main">
<div class="content">
<ul>
<li>Agora, se você precisar de ajuda adicional para usar o ambiente LE,
poderá acessá-la diretamente pelo ícone da boia na barra inferior ou
utilizando o menu LE (correspondente ao Iniciar).</li>
<li>Na parte direita da tela de ajuda você encontrará auxílio
especialmente projetado como apoio à exploração de todo o potencial do
ambiente Linux Educacional e, no menu à esquerda, você visualizará
itens do auxílio do KDE.</li>
</ul>
</div>
</div>
<img class="icon" src="icons/help.png" alt="" />
<!DOCTYPE html>
<html lang="en">
<head>
<title>ubiquity-slideshow-ubuntu</title>
<link href="link/general.css" rel="stylesheet" type="text/css" />
<base target="_blank" />
<script type="text/javascript" src="link-core/prototype.js"></script>
<script type="text/javascript" src="link-core/effects.js"></script>
<script type="text/javascript" src="link-core/fastinit.js"></script>
<script type="text/javascript" src="link-core/crossfade.js"></script>
<script type="text/javascript" src="directory.js"></script>
<script type="text/javascript" src="link-core/slideshow.js"></script>
</head>
<body>
<div id="container">
<div id="slideshow">
<!-- Slides go here. Simply place the following snippet
in the order you wish it to appear, replacing "MY SLIDE"
with the filename of your slide.
<div><a href="MY SLIDE" class="load"></a></div> -->
<div><a href="welcome.html" class="load"></a></div>
<div><a href="help.html" class="load"></a></div>
<div><a href="edubar.html" class="load"></a></div>
<div><a href="install.html" class="load"></a></div>
<div><a href="le-search.html" class="load"></a></div>
<div><a href="dm-publico.html" class="load"></a></div>
<div><a href="tv-escola.html" class="load"></a></div>
<div><a href="portal-prof.html" class="load"></a></div>
<div><a href="obj-educ.html" class="load"></a></div>
</div>
</div>
<div id="debug-controls">
<input type="button" id="prev-slide" value="&lt;"/>
<input type="text" id="current-slide" />
<input type="button" id="next-slide" value="&gt;"/>
</div>
</body>
</html>
<h1 class="title">Instalar Conteúdos Educacionais</h1>
<div class="main">
<div class="content">
<ul>
<li>Através da Edubar, você pode instalar o pacote completo de
conteúdos educacionais, ou se preferir, pode fazer uma instalação
parcial.</li>
<li>Uma vez instalados os conteúdos, você consegue acessá-los por meio
da ferramenta de busca.</li>
</ul>
</div>
</div>
<img class="edubar" src="icons/install.png" alt="" />
<h1 class="title">Buscar Conteúdos Educacionais</h1>
<div class="main">
<div class="content">
<ul>
<li>A partir da Edubar, você tem acesso à nova ferramenta de Busca de conteúdos educacionais.</li>
<li>Ela foi reestruturada com o objetivo de permitir consultas mais intuitivas e eficientes.</li>
</ul>
<p class="special-comment">Aproveite a busca como instrumento para enriquecer o material de apoio às suas atividades didáticas!</p>
</div>
</div>
<img class="edubar" src="icons/le-search.png" alt="" />
// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// For details, see the script.aculo.us web site: http://script.aculo.us/
// script.aculo.us builder.js v1.7.0_beta2, Mon Dec 18 23:38:56 CET 2006
// Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web site: http://script.aculo.us/
var Builder = {
NODEMAP: {
AREA: 'map',
CAPTION: 'table',
COL: 'table',
COLGROUP: 'table',
LEGEND: 'fieldset',
OPTGROUP: 'select',
OPTION: 'select',
PARAM: 'object',
TBODY: 'table',
TD: 'table',
TFOOT: 'table',
TH: 'table',
THEAD: 'table',
TR: 'table'
},
// note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
// due to a Firefox bug
node: function(elementName) {
elementName = elementName.toUpperCase();
// try innerHTML approach
var parentTag = this.NODEMAP[elementName] || 'div';
var parentElement = document.createElement(parentTag);
try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
} catch(e) {}
var element = parentElement.firstChild || null;
// see if browser added wrapping tags
if(element && (element.tagName != elementName))
element = element.getElementsByTagName(elementName)[0];
// fallback to createElement approach
if(!element) element = document.createElement(elementName);
// abort if nothing could be created
if(!element) return;
// attributes (or text)
if(arguments[1])
if(this._isStringOrNumber(arguments[1]) ||
(arguments[1] instanceof Array)) {
this._children(element, arguments[1]);
} else {
var attrs = this._attributes(arguments[1]);
if(attrs.length) {
try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
parentElement.innerHTML = "<" +elementName + " " +
attrs + "></" + elementName + ">";
} catch(e) {}
element = parentElement.firstChild || null;
// workaround firefox 1.0.X bug
if(!element) {
element = document.createElement(elementName);
for(attr in arguments[1])
element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
}
if(element.tagName != elementName)
element = parentElement.getElementsByTagName(elementName)[0];
}
}
// text, or array of children
if(arguments[2])
this._children(element, arguments[2]);
return element;
},
_text: function(text) {
return document.createTextNode(text);
},
ATTR_MAP: {
'className': 'class',
'htmlFor': 'for'
},
_attributes: function(attributes) {
var attrs = [];
for(attribute in attributes)
attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
'="' + attributes[attribute].toString().escapeHTML() + '"');
return attrs.join(" ");
},
_children: function(element, children) {
if(typeof children=='object') { // array can hold nodes and text
children.flatten().each( function(e) {
if(typeof e=='object')
element.appendChild(e)
else
if(Builder._isStringOrNumber(e))
element.appendChild(Builder._text(e));
});
} else
if(Builder._isStringOrNumber(children))
element.appendChild(Builder._text(children));
},
_isStringOrNumber: function(param) {
return(typeof param=='string' || typeof param=='number');
},
build: function(html) {
var element = this.node('div');
$(element).update(html.strip());
return element.down();
},
dump: function(scope) {
if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope
var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
"BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
"FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
"KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
"PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
"TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);
tags.each( function(tag){
scope[tag] = function() {
return Builder.node.apply(Builder, [tag].concat($A(arguments)));
}
});
}
}
/*
*
* Copyright (c) 2007 Andrew Tetlaw
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* *
*
*
* FastInit
* http://tetlaw.id.au/view/javascript/fastinit
* Andrew Tetlaw
* Version 1.3 (2007-01-09)
* Based on:
* http://dean.edwards.name/weblog/2006/03/faster
* http://dean.edwards.name/weblog/2006/06/again/
* Help from:
* http://www.cherny.com/webdev/26/domloaded-object-literal-updated
*
*/
var FastInit = {
onload : function() {
if (FastInit.done) { return; }
FastInit.done = true;
for(var x = 0, al = FastInit.f.length; x < al; x++) {
FastInit.f[x]();
}
},
addOnLoad : function() {
var a = arguments;
for(var x = 0, al = a.length; x < al; x++) {
if(typeof a[x] === 'function') { FastInit.f.push(a[x]); }
}
},
listen : function() {
if (/WebKit|khtml/i.test(navigator.userAgent)) {
FastInit.timer = setInterval(function() {
if (/loaded|complete/.test(document.readyState)) {
clearInterval(FastInit.timer);
delete FastInit.timer;
FastInit.onload();
}}, 10);
} else if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', FastInit.onload, false);
} else if(!FastInit.iew32) {
Event.observe(window, 'load', FastInit.onload);
}
},
f:[],done:false,timer:null,iew32:false
};
/*@cc_on @*/
/*@if (@_win32)
FastInit.iew32 = true;
document.write('<script id="__ie_onload" defer src="' + ((location.protocol == 'https:') ? '//0' : 'javascript:void(0)') + '"><\/script>');
document.getElementById('__ie_onload').onreadystatechange = function(){if (this.readyState == 'complete') { FastInit.onload(); }};
/*@end @*/
FastInit.listen();
/*
Javascript component of ubiquity-slideshow global to all variations.
* Interprets parameters passed via location.hash (in #?param1=key?param2 format)
* Creates an animated slideshow inside the #slideshow element.
* Automatically loads a requested locale, based on the default slides.
* Manages slideshow controls, if requested via parameters.
Assumptions are made about the design of the html document this is inside of.
Please see slides/ubuntu/index.html for an example of this script in use.
Dependencies (please load these first):
link-core/prototype.js
link-core/effects.js, link-core/fastinit.js, link-core/crossfade.js
directory.js (note that this file does not exist yet, but will when the build script runs)
*/
/* TODO: Accept extra parameters from host HTML file!
(Perhaps variables defined ahead of time)
*/
window.onDomReady = DomReady;
function DomReady(fn)
{
document.addEventListener("DOMContentLoaded", fn, false);
}
var options = []; /* this will hold parameters passed to the slideshow */
var slideshow;
window.onDomReady(function(){
parameters = window.location.hash.slice(window.location.hash.indexOf('#') + 1).split('?');
for(var i = 0; i < parameters.length; i++)
{
hash = parameters[i].split('=');
options.push(hash[0]);
options[hash[0]] = hash[1];
}
if ( options.indexOf('locale') > -1 )
setLocale(options['locale']);
if ( options.indexOf('rtl') > -1 )
loadRTL();
Crossfade.setup({autoLoad:false, random:false, interval:90, duration:0.5, loop:false, transition:Crossfade.Transition.Cover });
slideshow = new Crossfade('slideshow');
if ( options.indexOf('controls') > -1 ) {
slideshow.options.loop = true;
$('debug-controls').style.display = "block";
$('current-slide').value = slideshow.filenames[0];
$('prev-slide').onclick = prevSlide;
$('next-slide').onclick = nextSlide;
//slideshow.stop();
};
});
function setLocale(locale) {
var slideanchors = $$("div#slideshow div a");
slideanchors.each(function(anchor) {
var slide_name = anchor.readAttribute("href");
var new_url = _get_translated_url(slide_name, locale);
if ( new_url != null ) {
anchor.href = new_url;
/*console.log("Using translation at: "+ new_url);*/
}
})
function _get_translated_url(slide_name, locale) {
var translated_url = null
if ( _translation_exists(slide_name, locale) ) {
translated_url = "./loc."+locale+"/"+slide_name;
} else {
var before_dot = locale.split(".",1)[0];
var before_underscore = before_dot.split("_",1)[0];
if ( before_underscore != null && _translation_exists(slide_name, before_underscore) )
translated_url = "./loc."+before_underscore+"/"+slide_name;
else if ( before_dot != null && _translation_exists(slide_name, before_dot) )
translated_url = "./loc."+before_dot+"/"+slide_name;
}
return translated_url;
}
function _translation_exists(slide_name, locale) {
result = false;
try {
result = ( directory[locale][slide_name] == true );
} catch(err) {
/*
This usually happens if the directory object
(auto-generated at build time, placed in ./directory.js)
does not exist. That object is needed to know whether
a translation exists for the given locale.
*/
}
return result;
}
}
function loadRTL() {
document.body.addClassName("rtl")
}
function nextSlide() {
slideshow.next();
}
function prevSlide() {
slideshow.previous();
}
html, body
{
margin:0;
padding:0;
background-color:#2e3436;
font-family:sans-serif;
color:#000000;
}
/*
Hyperlink-style text
*/
a
{
color:blue;
font-style:italic;
}
#container
{
position:absolute;
width:700px;
height:420px;
overflow:hidden;
background-image:url('background.png');
background-repeat:no-repeat;
background-position:top left;
background-color:#fdfdfd;
/*cursor:default;*/
}
#debug-controls
{
display:block;
position:absolute;
top: 440px;
width:700px;
text-align:center;
}
#debug-controls input
{
width:40px;