Browse Source

Add theme selector

master
Shift 11 years ago
parent
commit
775ef96cf2
  1. 13
      abort.html
  2. BIN
      css/img/ajax-loader.gif
  3. BIN
      css/img/config.png
  4. BIN
      css/img/connections.png
  5. BIN
      css/img/edit.png
  6. BIN
      css/img/genericPerson.png
  7. BIN
      css/img/grayed_avatar_placeholder_24.png
  8. BIN
      css/img/home.png
  9. BIN
      css/img/icons-18-black.png
  10. BIN
      css/img/icons-18-white.png
  11. BIN
      css/img/icons-36-black.png
  12. BIN
      css/img/icons-36-white.png
  13. BIN
      css/img/loader.gif
  14. BIN
      css/img/messages.png
  15. BIN
      css/img/network.png
  16. BIN
      css/img/profile.png
  17. BIN
      css/img/reply.png
  18. BIN
      css/img/repost.png
  19. BIN
      css/img/spinner-medium.gif
  20. BIN
      css/img/spinner-small.gif
  21. BIN
      css/img/spinner.gif
  22. BIN
      css/img/tornado_avatar.png
  23. BIN
      css/img/twister_mini.png
  24. BIN
      css/img/wash-white-30.png
  25. BIN
      css/orange/OpenSans-Bold.ttf
  26. BIN
      css/orange/OpenSans-Italic.ttf
  27. BIN
      css/orange/OpenSans-Regular.ttf
  28. BIN
      css/orange/OpenSansCondensed300.ttf
  29. 238
      css/orange/profile.css
  30. 1574
      css/orange/style.css
  31. 14
      following.html
  32. 98
      home.html
  33. 13
      login.html
  34. 13
      network.html
  35. 37
      options.html
  36. 14
      profile-edit.html

13
abort.html

@ -3,7 +3,18 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Aborting...</title> <title>Aborting...</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/> <script>
var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="jquery.min.js"></script> <script src="jquery.min.js"></script>
<script src="jQueryPlugins.js"></script> <script src="jQueryPlugins.js"></script>
<script src="jquery.json-2.4.js"></script> <script src="jquery.json-2.4.js"></script>

BIN
css/img/ajax-loader.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
css/img/config.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
css/img/connections.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
css/img/edit.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
css/img/genericPerson.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
css/img/grayed_avatar_placeholder_24.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
css/img/home.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
css/img/icons-18-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
css/img/icons-18-white.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
css/img/icons-36-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
css/img/icons-36-white.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
css/img/loader.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
css/img/messages.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
css/img/network.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
css/img/profile.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
css/img/reply.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
css/img/repost.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
css/img/spinner-medium.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
css/img/spinner-small.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

BIN
css/img/spinner.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

BIN
css/img/tornado_avatar.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
css/img/twister_mini.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
css/img/wash-white-30.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

BIN
css/orange/OpenSans-Bold.ttf

Binary file not shown.

BIN
css/orange/OpenSans-Italic.ttf

Binary file not shown.

BIN
css/orange/OpenSans-Regular.ttf

Binary file not shown.

BIN
css/orange/OpenSansCondensed300.ttf

Binary file not shown.

238
css/orange/profile.css

@ -0,0 +1,238 @@
/**************************************
********************* PROFILE PHOTO ***
***************************************/
.profile-card
{
padding: 7px;
background: rgba( 255, 255, 255, .5 );
border: solid 1px rgba( 69, 71, 77, .05 );
position: relative;
}
.profile-card-main
{
width: 540px;
text-align: center;
position: relative;
transition: all .2s linear;
}
.profile-card-main:before
{
content: "";
border: solid 0px #fff;
transition: all .2s linear;
position: absolute;
left: 1px;
top: 1px;
right: 1px;
bottom: 1px;
z-index: 0;
}
.profile-card-main *
{
position: relative;
z-index: 1;
}
.profile-card-photo
{
width: 74px;
height: 74px;
border: solid 6px #45474d;
border-radius: 40%;
border-top-right-radius: 0;
border-bottom-left-radius: 0;
box-sizing: content-box;
float:left;
top: 50%;
background-color: #a12a28;
}
.profile-card-main h1
{
font-size: 24px;
font-weight: bold;
color: #fff;
}
.profile-card-main h2
{
color: #fff;
}
.profile-card .direct-messages,
.profile-card .direct-messages-with-user,
.profile-card .follow
{
display: block;
position: absolute;
bottom: 20px;
right: 10px;
padding: 10px;
font-size: 12px;
width: 120px;
text-align: center;
color: rgba( 0, 0, 0, .7 );
background: rgba( 0, 0, 0, .1 );
border: none;
transition: all .2s linear;
}
.profile-card .follow
{
right: 135px;
}
.profile-card .direct-messages:hover,
.profile-card .direct-messages-with-user:hover,
.profile-card .follow:hover
{
background: rgba( 0, 0, 0, .3 );
}
.profile-card.forEdition
{
margin: 0 auto;
width: 540px;
}
.forEdition .profile-card-photo
{
border: solid 2px #fff;
position: relative;
cursor: pointer;
transition: all .2s linear;
}
.forEdition .profile-card-main:hover:after,
.forEdition .profile-card-photo:after
{
content: "";
width: 36px;
height: 36px;
position: absolute;
top: 10px;
right: 10px;
background: url(../img/edit.png) no-repeat right top;
}
.forEdition .profile-card-main:hover:before
{
border: solid 5px #fff;
}
.forEdition .profile-card-main h2
{
margin-bottom: 8px;
}
.forEdition .profile-card-main input
{
display: block;
margin: 0 auto;
background: rgba( 0, 0, 0, .1 );
border: none;
padding: 6px 4px;
color: #fff;
margin-bottom: 4px;
text-align: center;
transition: all .2s linear;
}
.forEdition .profile-card-main input:hover,
.forEdition .profile-card-main input:focus,
.forEdition .profile-card-photo:hover
{
background: rgba( 0, 0, 0, .3 );
}
.input-description
{
width: 90%;
}
.input-name
{
font-size: 20px;
}
.forEdition .profile-card-main .input-website,
.forEdition .profile-card-main .input-city
{
display: inline-block;
}
.profile-edition-buttons
{
padding: 10px;
text-align: right;
}
/*************************************
****************** PROFILE MODAL
**************************************/
.profile-modal .modal-wrapper
{
width: 580px;
border-radius: 5px;
overflow: hidden;
position: absolute;
top:10%;
height: 80%;
margin-left: -300px;
}
.profile-modal .modal-content
{
padding: 3px;
height: 90%;
}
.profile-modal .profile-data
{
display: inline-block;
margin-left: -4px;
border-bottom: 0;
}
.profile-modal .postboard
{
margin-left: 0;
padding: 5px 0 5px 0;
height: 75%;
}
.profile-modal .postboard h2
{
width: auto;
}
.profile-modal .postboard-posts
{
display: block;
height: 90%;
overflow: auto;
}
.profile-modal .profile-card-main
{
background: #45474d;
color: white;
width:100%;
}
.profile-modal .profile-card-main a {
color: #8bb9e0;
}
.profile-modal .postboard-posts .post
{
padding: 0;
}
.profile-modal .post-interactions
{
margin: 2px 10px 3px 60px;
}
.profile-modal .profile-card
{
margin: 0;
padding: 0;
}
/*
.profile-card-main
{
height: 200px;
}
*/
.profile-modal .direct-messages,
.profile-modal .direct-messages-with-user,
.profile-modal .follow
{
bottom: 10px;
}
h1.profile-name {
display: inline;
}
h2.profile-screen-name {
display: inline;
}
.profile-modal .modal-buttons {
display: none;
}

1574
css/orange/style.css

File diff suppressed because it is too large Load Diff

14
following.html

@ -3,8 +3,18 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Following</title> <title>Following</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/> <script>
<link rel="stylesheet" href="css/profile.css" type="text/css"/> var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>
<script src="js/jquery.json-2.4.js"></script> <script src="js/jquery.json-2.4.js"></script>

98
home.html

@ -3,9 +3,6 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>twister</title> <title>twister</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/>
<link rel="stylesheet" href="css/profile.css" type="text/css"/>
<link rel="stylesheet" href="jquery-emotions/jquery.emotions.calm.css" type="text/css"/>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>
<script src="js/jquery.json-2.4.js"></script> <script src="js/jquery.json-2.4.js"></script>
@ -30,6 +27,20 @@
<script src="js/calm.js"></script> <script src="js/calm.js"></script>
<script src="js/options.js"></script> <script src="js/options.js"></script>
<script src="jquery-emotions/jquery.emotions.js"></script> <script src="jquery-emotions/jquery.emotions.js"></script>
<script>
var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
$(".userMenu-dhtindicator").hide();
}
</script>
<script>$(function(){setInterval("networkUpdate()", 2000); homeIntInit ();})</script> <script>$(function(){setInterval("networkUpdate()", 2000); homeIntInit ();})</script>
<link rel="icon" type="image/png" href="img/twister_mini.png" /> <link rel="icon" type="image/png" href="img/twister_mini.png" />
@ -37,7 +48,8 @@
<body> <body>
<!-- MENU SUPERIOR INIT --> <!-- MENU SUPERIOR INIT CALM-->
<div style="display:none" class="calm_menu">
<nav class="userMenu"> <nav class="userMenu">
<ul> <ul>
<li class="userMenu-home"><a href="#"></a></li> <li class="userMenu-home"><a href="#"></a></li>
@ -93,7 +105,75 @@
</ul> </ul>
</nav> </nav>
</div>
<!-- MENU SUPERIOR END --> <!-- MENU SUPERIOR END -->
<!-- MENU SUPERIOR INIT ORIGINAL-->
<div style="display:none" class="original_menu">
<nav class="userMenu">
<ul>
<li class="userMenu-home current"><a href="#">Home</a></li>
<li class="userMenu-network"><a href="network.html">Network</a></li>
<li class="userMenu-profile"><a href="profile-edit.html">Profile</a></li>
<li class="userMenu-config">
<a class="userMenu-config-dropdown" href="#">
<div class="config-menu dialog-modal">
<div class="mini-profile-info">
<div class="mini-profile-photo"><img src="img/grayed_avatar_placeholder_24.png" alt="user-photo"/></div>
<a href="#" class="mini-profile-name">Fulano da Silva</a>
<span class="mini-profile-view">View</span>
</div>
<a class="dropdown-menu-item" href="options.html">Options</a>
<a class="dropdown-menu-item" href="profile-edit.html">Setup account</a>
<a class="dropdown-menu-item" href="following.html">Following users</a>
<a class="dropdown-menu-item" href="network.html">Network config</a>
<a class="dropdown-menu-item" href="login.html">Change user</a>
<a class="dropdown-menu-item promoted-posts-only" href="#">Switch to Promoted posts</a>
<a class="direct-messages dropdown-menu-item" href="#">Direct Messages</a>
</div>
</a>
</li>
<li class="userMenu-connections">
<a href="#">
<span class="messages-qtd" style="display:none;">12</span>
</a>
</li>
<li class="userMenu-messages">
<a href="#">
<span class="messages-qtd" style="display:none;">12</span>
</a>
</li>
<!-- BUSCA -->
<li class="userMenu-search">
<input type="text" class="userMenu-search-field" placeholder="search"/>
<div class="search-results dialog-modal">
<ul class="userMenu-search-sugestions" style="display: none;">
<li><a href="#">Fulano</a></li>
<li><a href="#">Outro Fulano</a></li>
<li><a href="#">Mais outro</a></li>
</ul>
<ul class="userMenu-search-profiles">
<li id="search-profile-template" style="display: none;">
<div class="mini-profile-info" data-screen-name="">
<a href="#" class="open-profile-modal">
<img class="mini-profile-photo" src="img/grayed_avatar_placeholder_24.png" alt="user-photo"/>
<span class="mini-screen-name">@<b></b></span>
<span class="mini-profile-name"></span>
</a>
<button class="follow">Follow</button>
</div>
</li>
</ul>
</div>
</li>
</ul>
</nav></div>
<!-- MENU SUPERIOR END ORIGINAL-->
<div class="wrapper"> <div class="wrapper">
@ -445,5 +525,15 @@
<!-- TEMPLATES END --> <!-- TEMPLATES END -->
<audio id="player"></audio> <audio id="player"></audio>
<audio id="playerSec"></audio> <audio id="playerSec"></audio>
<!-- hide elements -->
<script>
if (theme=='calm') {
$(".calm_menu").show();
} else {
$(".userMenu-dhtindicator").hide();
$(".original_menu").show();
}
</script>
</body> </body>
</html> </html>

13
login.html

@ -3,7 +3,18 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>twister login</title> <title>twister login</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/> <script>
var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>
<script src="js/jquery.json-2.4.js"></script> <script src="js/jquery.json-2.4.js"></script>

13
network.html

@ -3,7 +3,18 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Network status</title> <title>Network status</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/> <script>
var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>
<script src="js/jquery.json-2.4.js"></script> <script src="js/jquery.json-2.4.js"></script>

37
options.html

@ -3,7 +3,18 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>twister login</title> <title>twister login</title>
<link rel="stylesheet" href="css/style.css" type="text/css"/> <script>
var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>
<script src="js/jquery.json-2.4.js"></script> <script src="js/jquery.json-2.4.js"></script>
@ -22,6 +33,13 @@
<script>$(function(){ <script>$(function(){
initInterfaceCommon(); initInterfaceCommon();
InitOptions();}) InitOptions();})
$(document).ready(function(){
$('#c_theme').change(function(){
localStorage.setItem('theme', $(this).val());
location.reload();
});
});
</script> </script>
</head> </head>
@ -114,7 +132,22 @@
</div> </div>
</div> </div>
</div> </div>
</div> <div class="Theme">
<div class="module">
<p> Theme </p>
<div>
<select name="" id="c_theme">
<option value="calm">Calm</option>
<option value="original">Original</option>
</select>
</div>
</div>
</div>
</div>
<script>
var theme = localStorage.getItem('theme');
$("#c_theme").val(theme);
</script>
</body> </body>
</html> </html>

14
profile-edit.html

@ -2,8 +2,18 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Edit profile</title> <title>Edit profile</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <script>
<link rel="stylesheet" href="css/profile.css" type="text/css"> var theme = localStorage.getItem('theme');
if (theme=='calm') {
document.write('<link rel="stylesheet" type="text/css" href="css/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/profile.css">');
document.write('<link rel="stylesheet" type="text/css" href="jquery-emotions/jquery.emotions.calm.css">');
} else {
document.write('<link rel="stylesheet" type="text/css" href="css/orange/style.css">');
document.write('<link rel="stylesheet" type="text/css" href="css/orange/profile.css">');
}
</script>
<script src="js/jquery.min.js"></script> <script src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/qrcode.js"></script> <script type="text/javascript" src="js/qrcode.js"></script>
<script src="js/jQueryPlugins.js"></script> <script src="js/jQueryPlugins.js"></script>

Loading…
Cancel
Save