-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ba454c
commit fa3e108
Showing
10 changed files
with
4,015 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<? var locale = getUserLocale(); ?> | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
|
||
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css"> | ||
</head> | ||
<body> | ||
<div style="text-align:justify;"> | ||
<?!=__("Il progetto BibleGet I/O con il relativo server web",locale)?> | ||
</div> | ||
<div style="text-align:center;border:2px outset Orange;border-radius:15px;background:Yellow;color:Red;height:60px;padding:5px;margin:30px;cursor:pointer;" > | ||
<a id="submitme" href="https://paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HDS7XQKGFHJ58" target="_blank"> | ||
<img src="https://googledrive.com/host/0B2T2bACoqOyKVzJVUjRnQXlQNlk/btn_donateCC_LG.gif" alt="PayPal - Il metodo rapido, affidabile e innovativo per pagare e farsi pagare." /> | ||
</a> | ||
<img alt="" border="0" src="https://googledrive.com/host/0B2T2bACoqOyKVzJVUjRnQXlQNlk/pixel.gif" width="1" height="1"> | ||
</div> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | ||
|
||
<script> | ||
$(document).ready(function(){ | ||
$('#submitme').click(function(){ | ||
google.script.host.close(); | ||
}); | ||
}); | ||
|
||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<? var locale = getUserLocale(); ?> | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
|
||
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css"> | ||
<style> | ||
textarea { width: 100%; height: 230px; } | ||
#thankyou,#tryagain { display:none; text-align: justify; margin-top:100px; } | ||
.closeme { margin-top: 30px; } | ||
.apps-share-sprite { | ||
background-image: url(//ssl.gstatic.com/docs/documents/share/images/sprite-15.svg); | ||
} | ||
.scb-container, .scb-icon { | ||
display: inline-block; | ||
} | ||
.scb-button-icon { | ||
margin: -3px 2px 0px -5px; | ||
vertical-align: middle!important; | ||
} | ||
|
||
.scb-public-icon-white, .scb-public-icon-black, .scb-unlisted-icon-white, .scb-unlisted-icon-black, .scb-domain-public-icon-white, .scb-domain-public-icon-black, .scb-domain-unlisted-icon-white, .scb-domain-unlisted-icon-black, .scb-privately-shared-icon-white, .scb-privately-shared-icon-black, .scb-private-icon-white, .scb-private-icon-black, .scb-mail-icon { | ||
width: 21px; | ||
height: 21px; | ||
background-repeat: no-repeat; | ||
vertical-align: bottom; | ||
} | ||
|
||
.scb-mail-icon { background-position: -0px -124px; } | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div id="initial"> | ||
<div class="form-group"> | ||
<label><b><?=__('Scrivi le tue osservazioni su BibleGet I/O',locale)?></b><br /> | ||
<textarea id="feedback-msg"></textarea> | ||
</label> | ||
</div> | ||
<div style="text-align:right;"><button id="sendmessage" class="action goog-inline-block"><span class="scb-icon apps-share-sprite scb-button-icon scb-mail-icon"> </span><?=__('Invia Messaggio',locale)?></button></div> | ||
</div> | ||
|
||
<div id="thankyou"> | ||
<span><?=__('Il tuo messaggio è stato inviato con successo. Grazie per averci contattato!',locale)?></span> | ||
<div style="text-align:center;"><button class="gray closeme"><?=__('CHIUDI',locale)?></button></div> | ||
</div> | ||
|
||
<div id="tryagain"> | ||
<span><?=__("L'invio del messaggio non è andato a buon fine... Ritenta l'invio.",locale)?></span> | ||
<div style="text-align:center;"><button class="gray closeme"><?=__('CHIUDI',locale)?></button></div> | ||
</div> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | ||
|
||
<script> | ||
$(document).ready(function(){ | ||
$('#sendmessage').click(function(){ | ||
var msg = $('#feedback-msg').val(); | ||
google.script.run.withSuccessHandler(thankyou).withFailureHandler(tryagain).sendMail(msg); | ||
}); | ||
|
||
$('.closeme').click(function(){ | ||
google.script.host.close(); | ||
}); | ||
}); | ||
|
||
var thankyou = function(){ | ||
$('#initial').fadeOut("slow",function(){ $('#thankyou').fadeIn("slow"); }); | ||
} | ||
|
||
var tryagain = function(){ | ||
$('#initial').fadeOut("slow",function(){ $('#tryagain').fadeIn("slow"); }); | ||
} | ||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
<? var locale = getUserLocale(); | ||
var biblebooks = []; | ||
var abbreviations = []; | ||
var userProperties = PropertiesService.getScriptProperties(); | ||
if(userProperties.getProperty("biblebooks0")===null){ | ||
//docLog('biblebooks not yet defined in script properties, now retrieving from server'); | ||
setProps(); | ||
} | ||
var usrProps = userProperties.getProperties(); | ||
var languages = JSON.parse(usrProps["languages"]); | ||
Logger.log(languages); | ||
var idx; | ||
for(var i=0;i<73;i++){ | ||
var usrprop = "biblebooks"+i; | ||
var jsbook = JSON.parse(usrProps[usrprop]); | ||
var lclbook = ""; | ||
var lclabbrev = ""; | ||
idx = languages.indexOf(_c(locale)); | ||
if(idx==-1){ idx = languages.indexOf("English"); } | ||
lclabbrev = jsbook[idx][1]; | ||
lclbook = jsbook[idx][0]; | ||
lclbook = lclbook.replace(/\s+\|/g, " |"); | ||
biblebooks.push(lclbook); | ||
abbreviations.push(lclabbrev); | ||
} | ||
//biblebooks.map(function(str){ return str.replace(/\s+\|/g, " |"); }); | ||
?> | ||
<!DOCTYPE html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
|
||
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css"> | ||
|
||
<style> | ||
|
||
.branding-below { | ||
bottom: 56px; | ||
top: 0; | ||
} | ||
|
||
ul.nav { | ||
display: block; | ||
width: 100%; | ||
position: relative; | ||
left: -36px; | ||
} | ||
ul.nav li{ | ||
cursor: pointer; | ||
display: table-cell; | ||
vertical-align: middle; | ||
width: 50%; | ||
background-color: Gray; | ||
text-align: center; | ||
font-weight:bold; | ||
color: LightGrey; | ||
height: 40px; | ||
border: 1px solid DimGray; | ||
padding: 0px 12px; | ||
} | ||
ul.nav li:hover { | ||
background-color: LightGrey; | ||
color: DimGray; | ||
} | ||
ul.nav li.active { | ||
cursor: default; | ||
background-color: White; | ||
color: DimGray; | ||
border-left: 1px solid DimGray; | ||
border-right: 1px solid DimGray; | ||
border-bottom: 1px solid DimGray; | ||
border-top: none; | ||
box-shadow: 0px 3px 3px Black; | ||
} | ||
|
||
div.sidebar-body { | ||
position:absolute; | ||
left:-3000px; | ||
} | ||
div.active-tab { | ||
position:relative; | ||
left:0px; | ||
height: 94%; | ||
max-height: 94%; | ||
/* max-height: 390px;*/ | ||
overflow-y: scroll; | ||
text-align: justify; | ||
padding-right: 8px; | ||
} | ||
table { width: 100%; } | ||
table th { font-weight:bold;text-align:left;width:50%; } | ||
table th,table td{ padding-left: 3px; } | ||
table td+td{ border-left: 1px dashed #ebebeb; } | ||
|
||
|
||
span.internal-link { | ||
color:#000044; | ||
background-color:#EEEEEE; | ||
cursor:pointer; | ||
} | ||
span.internal-link:hover { | ||
color:#0000FF; | ||
background-color:#CCCCCC; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="sidebar branding-below"> | ||
|
||
|
||
<div class="sidebar-body active-tab" id="explan-div"> | ||
<h1><?=__("Formulazione delle query bibliche",locale)?></h1> | ||
<p><?!=__("p1",locale)?></p> | ||
<p><?=__("p2",locale)?></p> | ||
<ul> | ||
<li><?=__("li1",locale)?> | ||
<li><?=__("li2",locale)?> | ||
<li><?=__("li3",locale)?> | ||
<ol> | ||
<li><?=__("li4",locale)?> | ||
<li><?=__("li5",locale)?> | ||
<li><?=__("li6",locale)?> | ||
</ol> | ||
</ul> | ||
<p><?=__("p3",locale)?></p> | ||
<p><?=__("p4",locale)?></p> | ||
<p><?!=__("p5",locale)?></p> | ||
<p><?!=__("p6",locale)?></p> | ||
</div> | ||
|
||
<div class="sidebar-body inactive-tab" style="display:none;" id="bookabbrevs-div"> | ||
<table> | ||
<tr><th><?=__("LIBRO",locale)?></th><th><?=__("ABBREVIAZIONE",locale)?></th></tr> | ||
<? for(var i=0;i<73;i++){ ?> | ||
<tr><td><?!=biblebooks[i]?></td><td><?=abbreviations[i]?></td></tr> | ||
<? } ?> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="sidebar bottom"> | ||
<ul class="nav" id="tabs-ul"><li class="active" id="explan"><?=__("Formare una query",locale)?></li><li id="bookabbrevs"><?=__("Libri / Abbreviazioni",locale)?></li></ul> | ||
<div style="background:linear-gradient(white,gray,lightblue,black);color:White;font-weight:bold;text-shadow:3px 3px 3px Black;padding:1px;vertical-align:middle;"><a target="_blank" href="http://www.bibleget.io"><img style="box-shadow:3px 3px 3px Black;background-color:#FFFFFF;margin-right:12px;padding:1px;position:relative;top:-4px;" width="32" height="32" title="" alt="" src="https://googledrive.com/host/0B2T2bACoqOyKVzJVUjRnQXlQNlk/holy-bible-x32.png" /></a><span style="position:relative;top:-9px;">BibleGet I/O for Google Docs</span></div> | ||
</div> | ||
|
||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | ||
|
||
<script> | ||
$(function() { | ||
$(".nav li").click(function(){ | ||
var thisid = $(this).attr("id"); | ||
$(".active").removeClass("active"); | ||
$(this).addClass("active"); | ||
$(".active-tab").fadeOut().removeClass("active-tab"); | ||
$("#"+thisid+"-div").addClass("active-tab").fadeIn(); | ||
}); | ||
|
||
$("span.internal-link").click(function(){ | ||
var toid = $(this).attr("id").replace("to-",""); | ||
$(".active").removeClass("active"); | ||
$("#"+toid).addClass("active"); | ||
$(".sidebar-body").fadeOut().removeClass("active-tab"); | ||
$("#"+toid+"-div").addClass("active-tab").fadeIn(); | ||
}); | ||
}); | ||
</script> | ||
</body> |
Oops, something went wrong.