Commit f1ba7682 authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

Merge branch 'master' of github.com:Sankore/Sankore-3.1

parents 631adcc3 7a95ca19
<html>
<head>
<title>Weektionnaire</title>
<link rel="stylesheet" type="text/css" href="css.css"/>
<script type="text/javascript" src="javascript.js"></script>
</head>
<body>
<div id="MenuOptions" style="display:none">
<div id="Bouton" onClick="FermerMenu()">
<img src="images/boutons/fermer.png" id="Fermer" onMouseOver="FermerIn()" onMouseOut="FermerOut()">
</div>
<div id="MenuContenu">
<p id="apropostxt">Weektionnaire 1.1<br/>
Dvelopp par Jol Amorim<br/>
Copyright 2010 GYB</p>
</div>
<img src="images/options/apropos.png" id="Options">
</div>
<div id="Fond">
</div>
<div id="Entre">
<input id="Weektionnaire" type="text" onClick="FermerDefinitionInput()" onKeypress="if(event.keyCode==13){RechercherNew()}"/>
</div>
<div id="BoutonWeektionnaire" onMouseOver="BoutonWeektionnaireIn()" onMouseOut="BoutonWeektionnaireOut()" onClick="ToggleMenuOptions()">
</div>
<div id="BoutonRechercher" onMouseOver="BoutonRechercherIn()" onMouseOut="BoutonRechercherOut()" onClick="RechercherNew();FermerHistorique();FermerMenu()">
</div>
<div id="BoutonMinimiser" onMouseOver="BoutonMinimiserIn()" onMouseOut="BoutonMinimiserOut()" onClick="Minimiser('FondDefinition');FermerHistorique();FermerMenu()">
</div>
<div id="BoutonHistorique" onMouseOver="BoutonHistoriqueIn()" onMouseOut="BoutonHistoriqueOut()" onClick="ToggleMenuHistorique();actualiserHistorique()">
</div>
<div id="MenuHistorique" style="display:none;">
<div id="FermerHistorique" onMouseOver="FermerHIn()" onMouseOut="FermerHOut()" onClick="FermerHistorique()">
<img src="images/boutons/fermer.png" id="FermerH">
</div>
<div id="TexteHistorique">
<a href=# id="Mots" onMouseOver="LienNoir('Mots')"></a>
</div>
</div>
<div id="FondDefinition" style="display:none;">
<div id="TexteDefinition">
</div>
</div>
<iframe id="DefinitionCNRTL" name="frame" src="" style="display:none"></iframe>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget width="290" height="280" ><name>Weektionnaire</name>
<content src="Weektionnaire.html"/>
</widget>
/* Mise en forme */
#Fond {
background:url(images/widget/widget.png);
background-repeat:no-repeat;
width:271px;
height:38px;
position:absolute;
top:5px;
left:5px;
z-index:0;
}
#Weektionnaire {
font-family:arial;
width:145px;
height:16px;
font-size:11px; /* La dformation du caractre due la taille en pixel est intressante */
border:none;
background-color:rgba(255,255,255,0);
position:absolute;
top:16;
left:81;
}
#BoutonWeektionnaire {
position:absolute;
top:12px;
left:21px;
width:22px;
height:22px;
}
#BoutonRechercher {
position:absolute;
top:16px;
left:64px;
width:14px;
height:14px;
}
#BoutonMinimiser {
position:absolute;
top:19px;
left:250px;
width:18px;
height:9px;
}
#FondDefinition {
background:url(images/widget/contenu.png);
width:271px;
height:218px;
position:absolute;
top:37px;
left:5px;
z-index:1;
}
#BoutonHistorique {
background:url(images/boutons/historique.png);
position:absolute;
top:17px;
left:226px;
width:14px;
height:14px;
z-index:7;
}
#TexteDefinition {
font-family:Georgia,Times;
text-align:left;
font-size:75%;
position:absolute;
top:13px;
left:13px;
z-index:3;
width:244px;
height:180px;
overflow-y:visible;
overflow-x:hidden;
}
#MenuHistorique {
background:url(images/options/menuhistorique.png);
width:210px;
height:130px;
position:absolute;
top:30px;
left:42px;
z-index:8;
}
#TexteHistorique {
font-family:Arial;
font-size:11px;
width:175px;
height:58px;
position:absolute;
top:61px;
left:19px;
z-index:9;
overflow:auto;
overflow-x:hidden;
}
#FermerHistorique {
width:24px;
height:24px;
position:absolute;
top:27px;
left:9px;
z-index:10;
}
#Options {
position:absolute;
top:30px;
left:16px;
z-index:2;
}
#MenuContenu {
width:175px;
height:58px;
overflow:hidden;
font-size:75%;
font-family:Arial;
color:black;
position:absolute;
top:85px;
left:32px;
z-index:10;
}
#fermer {
position:absolute;
top:57px;
left:198px;
z-index:4;
}
/* Styles de texte */
a {
text-decoration:none;
color:black;
}
a:hover {
color:yellow;
}
a:active {
color:gray;
}
\ No newline at end of file
......@@ -11,5 +11,6 @@
<author href="http://www.getuniboard.com"
email="info@mnemis.com">Mnemis SA</author>
<description>Wikipedia, the free encyclopedia</description>
<content src="index.html"/>
</widget>
......@@ -15,7 +15,6 @@
<script type="text/javascript">
var browsing = false;
var mode = 'wiki';
var lang = 'en';
var internalChange = false;
var toolbar = {
......@@ -51,9 +50,9 @@
$("#current-language").text(lang.charAt(0).toUpperCase() + lang.substr(1));
if(window.sankore){
toolbar.state = loadPref("historyState", "begin");
ubHistoryList = loadPref("historyList", "");
ubHistoryIndex = loadPref("historyIndex", "-1");
//window.resizeTo(350, 450);
}
if(ubHistoryList !== "") {
......@@ -127,10 +126,7 @@
textBoxInput = remacc(kword.replace(/ /g,'+'));
if(mode=='wiki')
textBoxInput = textBoxInput.replace(textBoxInput.charAt(0),textBoxInput.charAt(0).toUpperCase());
else if (mode=='wiktionary')
textBoxInput = textBoxInput.replace(textBoxInput.charAt(0),textBoxInput.charAt(0).toLowerCase());
if(toolbar.state == "begin"){
$('#web-browser').attr('src',"");
toolbar.state = "started";
......@@ -154,6 +150,7 @@
}
if(window.sankore && $("#web-browser").attr("src") !== ""){
savePref("historyState", "started");
savePref("historyList", appHistory.list.toString());
savePref("historyIndex", appHistory.index)
}
......
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:ub="http://uniboard.mnemis.com/widgets"
identifier="http://uniboard.mnemis.com/widgets/wikipedia"
version="1.2"
width="755"
height="450"
ub:resizable = "true">
<name>Wikipedia</name>
<author href="http://www.getuniboard.com"
email="info@mnemis.com">Mnemis SA</author>
<description>Wikipedia, the free encyclopedia</description>
<content src="index.html"/>
</widget>
body{
font-family:helvetica, arial, sans-serif;
font-size:12px;
}
.on-the-right{
width:0px;
position:absolute;
top:0;
overflow:visible;
margin-left:100%;
}
.toolbar{
background-image:url(../images/toolbarBody.png);
padding-left:4px;
border:1px solid #cccccc;
border-bottom:1px solid #ffffff;
position:relative;
}
.toolbar>div>.button{
width:29px;
height:24px;
float:left;
margin-right:4px;
margin-top:0px;
cursor:pointer;
}
#toolbar-down{
font-size:18px;
font-weight:bold;
color:#333333;
text-align:center;
font-family:helvetica, arial, sans-serif;
text-shadow: #ffffff 0px 1px 1px;
}
#url{
height:20px;
float:left;
border:1px solid #b9b9b9;
padding-right:4%;
width:80%;
}
#left-field{
float:left;
}
#right-field{
float:right;
}
#center-field{
display:block-inline;
position:relative;
}
#center-field.min{
margin-right:6px;
}
#center-field.full{
margin-right:78px;
margin-left:65px;
}
#web-canevas {
width:100%;
position:relative;
}
#web-browser {
border:1px solid #cccccc;
position:relative;
width:100%;
}
.toolbar-body {
display: table;
width: 100%;
height: 37px;
/* IE hacks */
position: relative !ie7;
}
.toolbar-body>div {
display: table-cell;
vertical-align: middle;
/* IE hacks */
position: absolute !ie7;
top: 50% !ie7;
}
#toolbar-button-back{ background-image:url(../images/toolbarButtonBack.png) }
#toolbar-button-forward{ background-image:url(../images/toolbarButtonForward.png) }
#toolbar-button-home{ background-image:url(../images/toolbarButtonHome.png) }
#toolbar-button-languages{ background-image:url(../images/toolbarButtonLanguages.png) }
#toolbar-button-search{
width:22px;
height:22px;
position:relative;
margin-left:-22px;
background-image:url(../images/toolbarButtonSearch.png);
background-repeat:no-repeat;
background-position:center center;
}
#toolbar-button-languages{
width:66px;
}
#toolbar-button-back{
margin-right:0px;
}
\ No newline at end of file
/*** ESSENTIAL STYLES ***/.sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none;}.sf-menu { line-height: 1.0; position:relative; display:table;}.sf-menu ul { position: absolute; top: -999em; width: 80px; /* left offset of submenus need to match (see below) */ background-color:#ffffff;}.sf-menu ul li { width: 100%;}.sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */}.sf-menu li { display:table-cell; vertical-align:middle; position: relative; padding-left:3px; width:61px; height:22px;} .sf-menu a { display: block; position: relative;}.sf-menu li:hover ul,.sf-menu li.sfHover ul { left: -20px; top: 22px; /* match top ul list item height */ z-index: 99;}ul.sf-menu li:hover li ul,ul.sf-menu li.sfHover li ul { top: -999em;}ul.sf-menu li li:hover ul,ul.sf-menu li li.sfHover ul { left: 10em; /* match ul width */ top: 0;}ul.sf-menu li li:hover li ul,ul.sf-menu li li.sfHover li ul { top: -999em;}ul.sf-menu li li li:hover ul,ul.sf-menu li li li.sfHover ul { left: 200px; /* match ul width */ top: 0;} /*** DEMO SKIN ***/.sf-menu { float: left; font-family:arial, sans-serif; font-size:12px; margin-top:1px;} .sf-menu li ul{ border:1px solid #ccc; padding-top:6px; padding-right:3px;} .sf-menu a { padding: .1em; padding-left:.5em; text-decoration:none;}.sf-menu li ul li a{ padding: 1px 0px 4px 6px;}.sf-menu li ul li a.sf-sl-last{}.sf-menu li ul li a.sf-sl-first{ }.sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #000;}.sf-menu li {}.sf-menu li .selected{ font-weight: bold; color:#333; text-shadow:#fff 0px 1px 1px;}.sf-menu li li { background: #FFF; float:left;}.sf-menu li li li { background: #FFF;}.sf-menu li li:hover { outline: 0; background: #e7edf7;}/*** arrows **/.sf-menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */}.sf-sub-indicator { position: absolute; display: block; right: .75em; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden;}a > .sf-sub-indicator { /* give all except IE6 the correct values */ top: .2em; background-position: 0 -100px; /* use translucent arrow for modern browsers*/}/* apply hovers to modern browsers */a:focus > .sf-sub-indicator,a:hover > .sf-sub-indicator,a:active > .sf-sub-indicator,li:hover > a > .sf-sub-indicator,li.sfHover > a > .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/} /* point right for anchors in subs */.sf-menu ul .sf-sub-indicator { background-position: -10px 0; }.sf-menu ul a > .sf-sub-indicator { background-position: 0 0; }/* apply hovers to modern browsers */.sf-menu ul a:focus > .sf-sub-indicator,.sf-menu ul a:hover > .sf-sub-indicator,.sf-menu ul a:active > .sf-sub-indicator,.sf-menu ul li:hover > a > .sf-sub-indicator,.sf-menu ul li.sfHover > a > .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/} /*** shadows for all but IE6 ***/.sf-shadow ul { background: url('../images/shadow.png') no-repeat bottom right; padding: 0 8px 9px 0; -moz-border-radius-bottomleft: 17px; -moz-border-radius-topright: 17px; -webkit-border-top-right-radius: 17px; -webkit-border-bottom-left-radius: 17px;}.sf-shadow ul.sf-shadow-off { background: transparent;}
\ No newline at end of file
This diff is collapsed.
copy.src.files=false
copy.src.target=
index.file=index.html
run.as=LOCAL
url=http://localhost/Wiktionary.wgt/
include.path=${php.global.include.path}
php.version=PHP_53
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=true
web.root=.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Wiktionary.wgt</name>
</data>
</configuration>
</project>
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
;
(function($){
$.fn.superfish = function(op){
var sf = $.fn.superfish,
c = sf.c,
menuActive = false,
$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
click = function(){
var $$ = $(this), menu = getMenu($$), o = sf.op;
if (o.firstOnClick && !menuActive && $$.parent()[0] == menu) {
menuActive = true;
clearTimeout(menu.sfTimer);
$$.showSuperfishUl().siblings().hideSuperfishUl();
return false; // prevent redirect to anchor target href
}
},
over = function(){
var $$ = $(this), menu = getMenu($$), o = sf.op;
if (!o.firstOnClick || menuActive || $$.parent()[0] != menu) {
clearTimeout(menu.sfTimer);
$$.showSuperfishUl().siblings().hideSuperfishUl();
}
},
out = function(){
var $$ = $(this), menu = getMenu($$), o = sf.op;
clearTimeout(menu.sfTimer);
menu.sfTimer=setTimeout(function(){
o.retainPath=($.inArray($$[0],o.$path)>-1);
$$.hideSuperfishUl();
if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){
over.call(o.$path);
}
else {
menuActive = false;
}
},o.delay);
},
getMenu = function($menu){
var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
sf.op = sf.o[menu.serial];
return menu;
},
addArrow = function($a){
$a.addClass(c.anchorClass).append($arrow.clone());
};
return this.each(function() {
var s = this.serial = sf.o.length;
var o = $.extend({},sf.defaults,op);
o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
$(this).addClass([o.hoverClass,c.bcClass].join(' '))
.filter('li:has(ul)').removeClass(o.pathClass);
});
sf.o[s] = sf.op = o;
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out)
.click(click)
.each(function() {
if (o.autoArrows) addArrow( $('>a:first-child',this) );
})
.not('.'+c.bcClass)
.hideSuperfishUl();
var $a = $('a',this);
$a.each(function(i){
var $li = $a.eq(i).parents('li');
$a.eq(i).focus(function(){
over.call($li);
}).blur(function(){
out.call($li);
});
});
o.onInit.call(this);
}).each(function() {
var menuClasses = [c.menuClass];
if (sf.op.dropShadows && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
$(this).addClass(menuClasses.join(' '));
});
};
var sf = $.fn.superfish;
sf.o = [];
sf.op = {};
sf.IE7fix = function(){
var o = sf.op;
if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off');
};
sf.c = {
bcClass : 'sf-breadcrumb',
menuClass : 'sf-js-enabled',
anchorClass : 'sf-with-ul',
arrowClass : 'sf-sub-indicator',
shadowClass : 'sf-shadow'
};
sf.defaults = {
hoverClass : 'sfHover',
pathClass : 'overideThisToUse',
pathLevels : 1,
delay : 800,
animation : {
opacity:'show'
},
speed : 'normal',
autoArrows : true,
dropShadows : true,
disableHI : false, // true disables hoverIntent detection
onInit : function(){}, // callback functions
onBeforeShow: function(){},
onShow : function(){},
onHide : function(){},
firstOnClick : false // true - open first level on click (like classic application menu)
};
$.fn.extend({
hideSuperfishUl : function(){
var o = sf.op,
not = (o.retainPath===true) ? o.$path : '';
o.retainPath = false;
var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
.find('>ul').hide().css('visibility','hidden');
o.onHide.call($ul);
return this;
},
showSuperfishUl : function(){
var o = sf.op,
sh = sf.c.shadowClass+'-off',
$ul = this.addClass(o.hoverClass)
.find('>ul:hidden').css('visibility','visible');
sf.IE7fix.call($ul);
o.onBeforeShow.call($ul);
$ul.animate(o.animation,o.speed,function(){
sf.IE7fix.call($ul);
o.onShow.call($ul);
});
return this;
}
});
})(jQuery);
......@@ -918,13 +918,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
else if (mimeType.startsWith("application/x-shockwave-flash"))
{
bool acceptFlash = true;
#ifdef Q_WS_X11
acceptFlash = false;
#endif
if (acceptFlash)
{
qDebug() << "accepting mime type" << mimeType << "as flash";
QString sUrl = sourceUrl.toString();
......@@ -967,11 +961,7 @@ void UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QString
if (eduMediaFile)
delete eduMediaFile;
}
else
{
UBApplication::showMessage(tr("Flash is not supported on Sankore Linux"));
}
}
else if (mimeType.startsWith("application/pdf"))
{
......
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