commit
044ddd6b5d
8 changed files with 537 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
The original branch is made by Christian Brassat |
|||
and it's released under MIT license. |
|||
https://github.com/crshd/startpage.rwrt |
|||
|
|||
The font is from Google Fonts |
|||
Monda-Regular.ttf: Copyright (c) 2012, vernon adams (vern@newtypography.co.uk), with Reserved Font Names 'Monda' |
|||
Monda-Bold.ttf: Copyright (c) 2012, vernon adams (vern@newtypography.co.uk), with Reserved Font Names 'Monda' |
|||
|
|||
|
|||
The background image is from Subtlepatterns.com |
|||
It's licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. |
@ -0,0 +1,86 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|||
|
|||
<!-- |
|||
Startpage Rewrite |
|||
================== |
|||
|
|||
by Christian Brassat, |
|||
--> |
|||
|
|||
<!-- |
|||
Released under MIT License |
|||
|
|||
Copyright (c) 2010 Christian Brassat |
|||
<http://crshd.cc> |
|||
Copyright (c) 2013 Blagovest Petrov |
|||
<http://petrovs.info> |
|||
|
|||
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. |
|||
--> |
|||
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|||
<head> |
|||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|||
<link rel="stylesheet" href="style/style.css" type="text/css" /> |
|||
<script type="text/javascript" src="js/jquery-1.5.min.js"></script> |
|||
<script type="text/javascript" src="settings.js"></script> |
|||
<script type="text/javascript" src="js/script.js"></script> |
|||
|
|||
<!-- Page Title --> |
|||
<title>Accueil</title> |
|||
|
|||
</head> |
|||
<body> |
|||
|
|||
<!-- |
|||
URLs go here, in the following format: |
|||
|
|||
Heading Text |
|||
http://www.example.com || Title |
|||
|
|||
Second Heading Text |
|||
http://www.example.com || Another Title |
|||
--> |
|||
|
|||
Logiciels |
|||
http://ovd.cf.lo || Open Virtual Desktop |
|||
https://cf.lo:8888 || Gestion des mots de passe |
|||
http://# || Courrier |
|||
http://doc.ubuntu-fr.org/ || Documentation Ubuntu |
|||
http://linux-bg.org/ || Linux за българи |
|||
|
|||
Bibliothèques |
|||
http://www.gutenberg.org/wiki/FR_Principal || Project Gutenberg |
|||
http://chitanka.info || Chitanka |
|||
|
|||
Encyclopédies |
|||
http://fr.wikipedia.org || Wikipédia |
|||
http://www.europeana.eu/ || Europeana |
|||
|
|||
Sofia University |
|||
http://www.uni-sofia.bg/ || Accueil |
|||
https://research.uni-sofia.bg/ || Recherche |
|||
|
|||
EDU Sites |
|||
https://www.khanacademy.org/ || Khan Academy |
|||
http://www.wolframalpha.com/ || WolframAlpha |
|||
https://www.coursera.org || Coursera |
|||
|
|||
</body> |
|||
</html> |
File diff suppressed because one or more lines are too long
@ -0,0 +1,226 @@ |
|||
/** |
|||
Startpage Reworked |
|||
================== |
|||
|
|||
by Christian Brassat, |
|||
reusing code by Jukka Svahn |
|||
*/ |
|||
|
|||
/** |
|||
Released under MIT License |
|||
|
|||
Copyright (c) 2010 Jukka Svahn, Christian Brassat |
|||
<http://rahforum.biz>
|
|||
<http://crshd.cc>
|
|||
|
|||
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. |
|||
*/ |
|||
|
|||
/* Clock *\ |
|||
\*=========*/ |
|||
function updateClock() { |
|||
var currentTime = new Date (); |
|||
var currentHours = currentTime.getHours (); |
|||
var currentMinutes = currentTime.getMinutes (); |
|||
var currentSeconds = currentTime.getSeconds (); |
|||
|
|||
// Pad the minutes and seconds with leading zeros, if required
|
|||
currentMinutes = (currentMinutes < 10 ? "0" : "") + currentMinutes; |
|||
currentSeconds = (currentSeconds < 10 ? "0" : "") + currentSeconds; |
|||
|
|||
// Choose either "AM" or "PM" as appropriate
|
|||
var timeOfDay = (currentHours < 12) ? "AM" : "PM"; |
|||
|
|||
// Convert the hours component to 12-hour format if needed
|
|||
currentHours = (currentHours > 12) ? currentHours - 12 : currentHours; |
|||
|
|||
// Convert an hours component of "0" to "12"
|
|||
currentHours = (currentHours == 0) ? 12 : currentHours; |
|||
|
|||
// Compose the string for display
|
|||
var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay; |
|||
|
|||
// Fill '#clock' div with time
|
|||
$("#clock").html(currentTimeString); |
|||
} |
|||
|
|||
$(document).ready(function() { |
|||
|
|||
/* Get Links *\ |
|||
\*=============*/ |
|||
var linkString = $('body').text(); |
|||
|
|||
/* Clear Page *\ |
|||
\*==============*/ |
|||
$('body').empty(); |
|||
|
|||
/* Create Array from linkString *\ |
|||
\*================================*/ |
|||
var linkArray = linkString.split("\n"); |
|||
|
|||
/* Go thru Array *\ |
|||
\*=================*/ |
|||
var i; |
|||
var count = 1; |
|||
var html = ''; |
|||
|
|||
for(i in linkArray) { |
|||
|
|||
/* Get line *\ |
|||
\*============*/ |
|||
var line = jQuery.trim(linkArray[i]); |
|||
|
|||
// If line is empty, skip
|
|||
if(!line) |
|||
continue; |
|||
|
|||
/* If it doesn't contain "://", *\ |
|||
|* it's not a URL *| |
|||
\*================================*/ |
|||
if(/:\/\//.test(line) != true) { |
|||
if(count > 1) |
|||
html = html + '</div>'; |
|||
html = html + '<div class="block"><h1>' + line + '</h1><ul>'; |
|||
count++; |
|||
continue; |
|||
} |
|||
|
|||
/* Split URL and Title *\ |
|||
\*=======================*/ |
|||
var lineArray = line.split(" || "); |
|||
var url = lineArray[0]; |
|||
var title = lineArray[1]; |
|||
|
|||
/* Add HTML code *\ |
|||
\*=================*/ |
|||
if(newwindow) |
|||
html = html + '<li><a href="' + url + '" target="_blank">' + title + '</a></li>' |
|||
else |
|||
html = html + '<li><a href="' + url + '">' + title + '</a></li>' |
|||
} |
|||
|
|||
/* Add generated content to page *\ |
|||
\*=================================*/ |
|||
html = html + '</ul></div>'; |
|||
$('body').append(html); |
|||
|
|||
|
|||
/* Animation Time! *\ |
|||
\*===================*/ |
|||
|
|||
/* Hide lists *\ |
|||
\*==============*/ |
|||
$('ul').slideUp(); |
|||
|
|||
/* Show on hover *\ |
|||
\*=================*/ |
|||
$('.block').mouseenter(function() { |
|||
$('ul', this).slideDown(); |
|||
}); |
|||
|
|||
/* Hide on unhover *\ |
|||
\*===================*/ |
|||
$('.block').mouseleave(function() { |
|||
$('ul', this).slideUp(); |
|||
}); |
|||
|
|||
|
|||
/* Search Engines *\ |
|||
\*==================*/ |
|||
|
|||
var search = '<div id="searches">'; |
|||
|
|||
if(google) { |
|||
var search = search + '<form method="get" action="http://www.google.com/search">', |
|||
search = search + '<input type="text" id="g" name="q" size="34" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="Google" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(googleimages) { |
|||
var search = search + '<form method="get" action="http://www.google.com/images">', |
|||
search = search + '<input type="text" id="i" name="q" size="27" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="Google Images" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(yahoo) { |
|||
var search = search + '<form method="get" action="http://search.yahoo.com/search">', |
|||
search = search + '<input type="text" id="y" name="p" size="35" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="Yahoo" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(wikipedia) { |
|||
var search = search + '<form method="get" action="http://www.wikipedia.org/w/index.php">', |
|||
search = search + '<input type="text" id="w" name="search" size="31" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="Wikipedia" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(dictcc) { |
|||
var search = search + '<form method="get" action="http://www.dict.cc/">', |
|||
search = search + '<input type="text" id="dcc" name="s" size="33" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="dict.cc" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(leo) { |
|||
var search = search + '<form method="get" action="http://dict.leo.org/">', |
|||
search = search + '<input type="text" id="l" name="search" size="37" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="leo" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(flickr) { |
|||
var search = search + '<form method="get" action="http://www.flickr.com/search">', |
|||
search = search + '<input type="text" id="da" name="q" size="34" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="flickr" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
if(deviantart) { |
|||
var search = search + '<form method="get" action="http://browse.deviantart.com/">', |
|||
search = search + '<input type="text" id="da" name="q" size="30" maxlength="255" value="" />', |
|||
search = search + '<input type="submit" value="deviantART" />', |
|||
search = search + '</form>'; |
|||
} |
|||
|
|||
var search = search + '</div>'; |
|||
|
|||
/* Add to page *\ |
|||
\*===============*/ |
|||
$('body').append(search); |
|||
if(focusSearch) { |
|||
var searchDiv = document.getElementById ('searches'); |
|||
$(searchDiv.firstChild.firstChild).focus(); |
|||
} |
|||
|
|||
/* Clock *\ |
|||
\*=========*/ |
|||
|
|||
if(showClock) { |
|||
// Add empty '#clock' div
|
|||
$('body').append('<div id="clock"></div>'); |
|||
|
|||
// Update clock
|
|||
setInterval('updateClock()', 1000); |
|||
} |
|||
|
|||
}); |
@ -0,0 +1,60 @@ |
|||
/** |
|||
Startpage Reworked |
|||
================== |
|||
|
|||
by Christian Brassat, |
|||
reusing code by Jukka Svahn |
|||
*/ |
|||
|
|||
/** |
|||
Released under MIT License |
|||
|
|||
Copyright (c) 2010 Jukka Svahn, Christian Brassat |
|||
<http://rahforum.biz>
|
|||
<http://crshd.cc>
|
|||
|
|||
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. |
|||
*/ |
|||
|
|||
$(document).ready(function() { |
|||
|
|||
/** |
|||
Simple configuration using (mostly) true/false settings. Use "true" to enable |
|||
feature, "false" to disable feature. |
|||
*/ |
|||
|
|||
// Open in new window_tab
|
|||
newwindow = true; |
|||
|
|||
// Enable/disable various search engines
|
|||
google = true; |
|||
googleimages = false; |
|||
yahoo = false; |
|||
wikipedia = false; |
|||
dictcc = false; |
|||
leo = false; |
|||
flickr = false; |
|||
deviantart = false; |
|||
|
|||
// Focus on searchbox when opening
|
|||
focusSearch = true; |
|||
|
|||
// Enable clock
|
|||
showClock = true; |
|||
}); |
Binary file not shown.
@ -0,0 +1,138 @@ |
|||
/** |
|||
Startpage Reworked |
|||
================== |
|||
|
|||
by Christian Brassat, |
|||
*/ |
|||
|
|||
/** |
|||
Released under MIT License |
|||
|
|||
Copyright (c) 2010 Christian Brassat |
|||
<http://crshd.cc> |
|||
|
|||
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. |
|||
*/ |
|||
|
|||
@font-face { |
|||
font-family: 'Monda'; |
|||
font-style: normal; |
|||
font-weight: 700; |
|||
src: local('Monda Bold'), local('Monda-Bold'), url(monda.woff) format('woff'); |
|||
} |
|||
|
|||
body { |
|||
background: #66CCFF; /* Page background */ |
|||
background-image:url('type.png'); |
|||
color: #A3A3A3; /* Font color */ |
|||
padding: 150px; /* Padding between link blocks and edge */ |
|||
font-family: "Monda-Bold", "Helvetica Neue", sans-serif; /* Font */ |
|||
text-shadow: rgba(0,0,0,0.6) 1px 1px 0; /* Text Shadow */ |
|||
cursor: default; |
|||
} |
|||
|
|||
a { |
|||
color: #A3A3A3; /* Link Color */ |
|||
font-size: 16px; /* Link Size */ |
|||
text-decoration: none; /* Remove underlines */ |
|||
} |
|||
|
|||
a:hover { |
|||
color: #ddd; /* Link hover color */ |
|||
} |
|||
|
|||
.block { |
|||
border-left: 1px solid #A3A3A3; /* Left border of link block */ |
|||
float: left; |
|||
padding: 1em; /* Padding around link block */ |
|||
width: 155px; /* Link block width */ |
|||
} |
|||
|
|||
h1 { |
|||
margin: 0; |
|||
font-size: 1.5em; /* Title size */ |
|||
} |
|||
|
|||
ul { |
|||
padding: 0.25em; |
|||
} |
|||
|
|||
ul li { |
|||
list-style: none; |
|||
padding: 5px; |
|||
} |
|||
|
|||
#searches { |
|||
position: absolute; /* Position search box */ |
|||
top: 2em; /* from top edge */ |
|||
right: 2em; /* from right edge */ |
|||
} |
|||
|
|||
#clock { |
|||
position: absolute; |
|||
bottom: 10px; |
|||
right: 10px; |
|||
font-size: 2em; |
|||
} |
|||
|
|||
form { |
|||
margin-top: 1em; |
|||
} |
|||
|
|||
form input { |
|||
background: #333; /* Background search box */ |
|||
background: -webkit-gradient( /* gradient for webkit */ |
|||
linear, |
|||
left top, |
|||
left bottom, |
|||
from(#222), |
|||
to(#333)); |
|||
background: -moz-linear-gradient( /* gradient for gecko */ |
|||
top, |
|||
#222, |
|||
#333); |
|||
border: 1px solid #444; /* Border search box */ |
|||
-webkit-box-shadow: rgba(0,0,0,0.2) 0 1px 2px; /* Shadow search box - webkit */ |
|||
-moz-box-shadow: rgba(0,0,0,0.2) 0 1px 2px; /* Shadow search box - gecko */ |
|||
box-shadow: rgba(0,0,0,0.2) 0 1px 2px; /* Shadow search box - generic */ |
|||
color: #ddd; /* Text color search box */ |
|||
font-size: 1em; /* Text size search box */ |
|||
} |
|||
|
|||
form input:first-child { |
|||
-webkit-border-top-left-radius: 5px; |
|||
-webkit-border-bottom-left-radius: 5px; |
|||
-moz-border-radius-topleft: 5px; |
|||
-moz-border-radius-bottomleft: 5px; |
|||
border-top-left-radius: 5px; |
|||
border-bottom-left-radius: 5px; |
|||
border-right: 0; |
|||
} |
|||
|
|||
form input:last-child { |
|||
-webkit-border-top-right-radius: 5px; |
|||
-webkit-border-bottom-right-radius: 5px; |
|||
-moz-border-radius-topright: 5px; |
|||
-moz-border-radius-bottomright: 5px; |
|||
border-top-right-radius: 5px; |
|||
border-bottom-right-radius: 5px; |
|||
border-left: 0; |
|||
} |
|||
/* cc BY-NC-SA License :: k3ttc4r :: 2008 :: http://k3ttc4r.deviantart.com */ |
|||
/* background by Alexander-GG :: http://alexander-gg.deviantart.com */ |
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in new issue