Initial site

This commit is contained in:
Fletcher Boyd 2017-10-18 21:02:23 +08:00
parent 862699c8e7
commit d4a84567db
15 changed files with 2760 additions and 0 deletions

68
www/contact.html Normal file
View File

@ -0,0 +1,68 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Pirate IRC | Contact</title>
<link rel="shortcut icon" type="image/x-icon" href="style/images/signet.png" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/css/ie7.css" media="all" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all" />
<![endif]-->
<script type="text/javascript" src="style/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="style/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="style/js/jquery.masonry.min.js"></script>
</head>
<body>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<div id="sidebar">
<div id="logo"><a href="index.html"><img src="style/images/signet.png" alt="Pirate IRC" /></a></div>
<!-- Begin Menu -->
<div id="menu" class="menu-v">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="servers.html">Servers</a></li>
<li><a href="parties.html">Parties</a></li>
<li><a href="https://webchat.pirateirc.net/">Webchat</a></li>
<li><a href="contact.html" class="active">Contact Us</a></li>
</ul>
</div>
<!-- End Menu -->
</div>
<!-- End Sidebar -->
<!-- Begin Content -->
<div id="content">
<h1 class="title">Get in Touch</h1>
<div class="line"></div>
<p>Please join <a href="https://webchat.pirateirc.net/?channels=opers">#opers</a> or contact <a href="mailto:fletcher.boyd@pirateparty.org.au">Fletcher</a> with any issues.</p>
<!-- Begin Footer -->
<div id="footer">
Last updated: 2017-10-18
</div>
<!-- End Footer -->
</div>
<!-- End Content -->
</div>
<!-- End Wrapper -->
<div class="clear"></div>
<script type="text/javascript" src="style/js/scripts.js"></script>
<!--[if !IE]> -->
<script type="text/javascript" src="style/js/jquery.corner.js"></script>
<!-- <![endif]-->
</body>
</html>

81
www/index.html Normal file
View File

@ -0,0 +1,81 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Pirate IRC | Home</title>
<link rel="shortcut icon" type="image/x-icon" href="style/images/signet.png" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/css/ie7.css" media="all" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all" />
<![endif]-->
<script type="text/javascript" src="style/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="style/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="style/js/jquery.masonry.min.js"></script>
</head>
<body>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<div id="sidebar">
<div id="logo"><a href="index.html"><img src="style/images/signet.png" alt="Pirate IRC" /></a></div>
<!-- Begin Menu -->
<div id="menu" class="menu-v">
<ul>
<li><a href="index.html" class="active">Home</a></li>
<li><a href="servers.html">Servers</a></li>
<li><a href="parties.html">Parties</a></li>
<li><a href="https://webchat.pirateirc.net/">Webchat</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<!-- End Menu -->
</div>
<!-- End Sidebar -->
<!-- Begin Content -->
<div id="content">
<h1 class="title">Welcome</h1>
<div class="line"></div>
<div class="intro">The Pirate IRC network is an IRC network for the global network of Pirate Parties who use IRC as a communication platform for political discussion.</div>
<h3>Updates</h3>
<ul>
<li><strong>2017-10-18</strong>: Sydney-AU and Roubaix-FR have received updates. Users should not be affected.</li>
<li><strong>2017-08-15</strong>: London-UK has been decomissioned. The DNS pool has been updated to use other servers and users should experience minimal downtime.</li>
<li><strong>2017-05-11</strong>: Please welcome Mikaela who has joined us as an admin of Roubaix-FR. Mikaela hails from PPFI and will be working with the existing admin, Scoffa.</li>
<li><strong>2015-01-29</strong>: The Piraattipuolue (The Pirate Party of Finland) have moved their server from Lithuania to France. This means that vilnius-lt.pirateirc.net has moved and become roubaix-fr.pirateirc.net. The DNS for the old server now points to roubaix-fr.pirateirc.net. Please remember to update your clients.</li>
<li><strong>2015-01-13</strong>: Fletcher has taken over from Brendan as the admin for Sydney-AU which is hosted by PPAU.</li>
<li><strong>2012-11-24</strong>: Sydney-AU has been linked. It's hosted by Pirate Party Australia from Sydney, Australia. Brendan has moved from Ashburn-US as primary oper.</li>
<li><strong>2012-11-24</strong>: Ashburn-US has been decomissioned. The DNS pool has been updated to use other servers and users should experience minimal downtime.</li>
</ul>
</p>
<!-- Begin Footer -->
<div id="footer">
Last updated: 2017-10-18
</div>
<!-- End Footer -->
</div>
<!-- End Content -->
</div>
<!-- End Wrapper -->
<div class="clear"></div>
<script type="text/javascript" src="style/js/scripts.js"></script>
<!--[if !IE]> -->
<script type="text/javascript" src="style/js/jquery.corner.js"></script>
<!-- <![endif]-->
</body>
</html>

129
www/parties.html Normal file
View File

@ -0,0 +1,129 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Pirate IRC | Parties</title>
<link rel="shortcut icon" type="image/x-icon" href="style/images/signet.png" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/css/ie7.css" media="all" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all" />
<![endif]-->
<script type="text/javascript" src="style/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="style/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="style/js/jquery.masonry.min.js"></script>
</head>
<body>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<div id="sidebar">
<div id="logo"><a href="index.html"><img src="style/images/signet.png" alt="Pirate IRC" /></a></div>
<!-- Begin Menu -->
<div id="menu" class="menu-v">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="servers.html">Servers</a></li>
<li><a href="parties.html" class="active">Parties</a></li>
<li><a href="https://webchat.pirateirc.net/">Webchat</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<!-- End Menu -->
</div>
<!-- End Sidebar -->
<!-- Begin Content -->
<div id="content">
<h1 class="title">Parties on the Pirate IRC Network</h1>
<div class="intro">Many Pirate Parties coordinate from the Pirate IRC Network, some of them also provide approved servers as well which you can find on the <a href="servershtml">servers</a> page. This list serves as a directory of parties on the IRC network and where you can find them.</div>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party UK</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppuk">#ppuk</a></p>
<div class="line"></div>
<p><strong>party</strong>: Piratpartiet Sweden</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piratpartiet">#piratpartiet</a></p>
<div class="line"></div>
<p><strong>party</strong>: Piraattipuolue Finland</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piraattipuolue">#piraattipuolue</a></p>
<div class="line"></div>
<p><strong>party</strong>: Piratpartiet Norway</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piratpartiet.no">#piratpartiet.no</a></p>
<div class="line"></div>
<p><strong>party</strong>: Piratenpartij Nederland</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piratenpartij">#piratenpartij</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party Australia</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppau">#ppau</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party Switzerland</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=pps">#pps</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party of Canada</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=canada">#canada</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party France</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=partipirate">#partipirate</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party Estonia</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piraadipartei">#piraadipartei</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party of Poland</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=partiapiratow">#partiapiratow</a></p>
<div class="line"></div>
<p><strong>party</strong>: United States Pirate Party (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=uspp">#uspp</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party New Zealand (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppnz">#ppnz</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party Greece (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppgr">#ppgr</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party Turkey (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=korsanparti">#korsanparti</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party of India (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=piratepin">#piratepin</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party of Russia (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppru">#ppru</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Party of Argentina (currently an unofficial/unregistered party)</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppar">#ppar</a></p>
<div class="line"></div>
<p><strong>party</strong>: Pirate Parties International</p>
<p><strong>channel</strong>: <a href="https://webchat.pirateirc.net/?channels=ppi">#ppi</a></p>
<div class="line"></div>
<p>If all else fails try asking in: <a href="https://webchat.pirateirc.net/?channels=ppar">#opers</a></p>
<div class="line"></div>
<p>If your party is not listed here and you would like it to be please join <a href="https://webchat.pirateirc.net/?channels=opers">#opers</a> and let us know!</p>
<!-- Begin Footer -->
<div id="footer">
Last updated: 2017-10-18
</div>
<!-- End Footer -->
</div>
<!-- End Content -->
</div>
<!-- End Wrapper -->
<div class="clear"></div>
<script type="text/javascript" src="style/js/scripts.js"></script>
<!--[if !IE]> -->
<script type="text/javascript" src="style/js/jquery.corner.js"></script>
<!-- <![endif]-->
</body>
</html>

107
www/servers.html Normal file
View File

@ -0,0 +1,107 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Pirate IRC | Servers</title>
<link rel="shortcut icon" type="image/x-icon" href="style/images/signet.png" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Amaranth' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/css/ie7.css" media="all" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/css/ie8.css" media="all" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" type="text/css" href="style/css/ie9.css" media="all" />
<![endif]-->
<script type="text/javascript" src="style/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="style/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="style/js/jquery.masonry.min.js"></script>
</head>
<body>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Sidebar -->
<div id="sidebar">
<div id="logo"><a href="index.html"><img src="style/images/signet.png" alt="Pirate IRC" /></a></div>
<!-- Begin Menu -->
<div id="menu" class="menu-v">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="servers.html" class="active">Servers</a></li>
<li><a href="parties.html">Parties</a></li>
<li><a href="https://webchat.pirateirc.net/">Webchat</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<!-- End Menu -->
</div>
<!-- End Sidebar -->
<!-- Begin Content -->
<div id="content">
<h1 class="title">Servers</h1>
<div class="line"></div>
<h3>Roubaix-fr.pirateirc.net</h3>
<p><strong>location</strong>: Roubaix, France</br>
<strong>party</strong>: Piraattipuolue Finland</br>
<strong>admins</strong>: <a href="mailto:scoffa@pirateirc.net">Scoffa</a>, <a href="mailto:mikaela.suomalainen@piraattipuolue.fi">Mikaela</a></br>
<strong>features</strong>: IPv4, SSL (commercial / verifiable), SASL</br>
<strong>ports</strong>: 6667 (standard), 6697 (SSL)</br>
<ul>SSL fingerprints
<li><strong>SHA1</strong>: E0:AA:92:42:FE:A7:E3:11:6B:2B:46:50:B8:5C:D0:94:A1:45:6E:95</li>
<li><strong>SHA256</strong>: 6D:CD:99:36:15:D6:F6:BD:DC:09:42:EF:5D:D7:5A:77:EB:8E:E2:7A:B7:7E:C8:AF:31:06:2D:D6:4A:5E:37:FF</li></ul></p>
<div class="line"></div>
<h3>Stockholm-se.pirateirc.net</h3>
<p><strong>location</strong>: Stockholm, Sweden</br>
<strong>party</strong>: Piratpartiet Sweden</br>
<strong>admins</strong>: <a href="mailto:olan@pirateirc.net">OlaN</a>, Milliways</br>
<strong>features</strong>: IPv4, IPv6, SSL (commercial / verifiable), SASL</br>
<strong>ports</strong>: 6667, 8080 (standard), 6697, 9090 (SSL)</br>
<ul>SSL fingerprints
<li><strong>SHA1</strong>: 28:07:AA:22:9E:8A:C0:BD:53:62:C8:75:CD:65:05:D1:E0:36:FB:60</li>
<li><strong>SHA256</strong>: 30:10:72:5F:92:4A:58:0A:6A:8E:9F:A0:05:64:21:E3:89:94:00:FB:30:54:DC:8B:FD:A7:0E:5B:36:E0:42:C0</li></ul></p>
<div class="line"></div>
<h3>Sydney-au.pirateirc.net</h3>
<p><strong>location</strong>: Sydney, Australia</br>
<strong>party</strong>: Pirate Party Australia</br>
<strong>admins</strong>: <a href="mailto:fletcher.boyd@pirateparty.org.au">Fletcher</a> (PGP: 5BAE 331E 9B57 3709 6E6A 19ED 85B8 D7B6 60D5 D803)</br>
<strong>features</strong>: IPv4, IPv6, SSL (commercial / verifiable), SASL</br>
<strong>ports</strong>: 6667 (standard), 6697 (SSL)</br>
<ul>SSL fingerprints
<li><strong>SHA1</strong>: C0:55:84:58:AB:0C:7C:C6:07:1A:0B:56:79:98:17:9C:3B:4A:BD:D9</li>
<li><strong>SHA256</strong>: C9:3E:BA:4D:43:4D:C9:E5:33:67:72:32:62:E9:D1:F3:C0:68:F7:F7:23:B3:37:BF:C0:2A:A0:F9:A3:4D:84:F5</li></ul></p>
<div class="line"></div>
<h3>Matrix Bridge</h3>
<p><strong>site</strong>: <a href="https://diasp.in">diasp.in</a></br>
<strong>admin</strong>: <a href="mailto:noteness@riseup.net">Noteness</a> (PGP: 5EA4 60AE EE37 8B62 F672 D906 5C20 98DC 4DF7 C1CA)</br>
<strong>features</strong>: Bridges all PirateIRC rooms to a federated Matrix server.</br>
<strong>connecting</strong>: #pirateirc_#your-channel:diasp.in from any federated homeserver. (like <a href="https://matrix.org">Matrix.org</a></br>
<div class="clear"></div>
<!-- Begin Footer -->
<div id="footer">
Last updated: 2017-10-18
</div>
<!-- End Footer -->
</div>
<!-- End Content -->
</div>
<!-- End Wrapper -->
<div class="clear"></div>
<script type="text/javascript" src="style/js/scripts.js"></script>
<!--[if !IE]> -->
<script type="text/javascript" src="style/js/jquery.corner.js"></script>
<!-- <![endif]-->
</body>
</html>

1519
www/style.css Normal file

File diff suppressed because it is too large Load Diff

23
www/style/css/ie7.css Normal file
View File

@ -0,0 +1,23 @@
.menu-v ul li ul{
border: 1px solid #4e5c68;
}
#sidebar ul.share li {
display: inline;
}
.pricing .featured {
top: -1px;
}
.interval {
padding-top: 10px;
}
#filtering-nav {
overflow: hidden;
}
.follow-me {
display: none;
}

8
www/style/css/ie8.css Normal file
View File

@ -0,0 +1,8 @@
.menu-v ul li ul{
border: 1px solid #4e5c68;
}
.searchform input {
padding: 9px 10px 6px;
height: 16px;
}

11
www/style/css/ie9.css Normal file
View File

@ -0,0 +1,11 @@
.date {
-webkit-border-radius: 75px;
-moz-border-radius: 75px;
border-radius: 75px;
}
.carousel ul li img, #prev, #next, .jquery-slider-slide img, .col4 img, .items img, ul.popular-posts li img, .sidebox ul.popular-posts li img, .post img, a.button, .forms fieldset .btn-submit, #filtering-nav li a, .page-navi ul li a, .map iframe, .text-input, .text-area, .form-container .response, .overlay, ul#button_quotes button, ul.tabs li a, .tab_container, h2.trigger, .togglebox, pre, .download-box, .warning-box, .info-box, .note-box, .round, .jta-tweet-list-controls-button {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

BIN
www/style/images/signet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -0,0 +1,139 @@
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
//** Menu created: Nov 12, 2008
//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth
//** Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items.
//** May 1st, 09" (v1.3):
//** 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v'
//** 2) In IE6, shadows are now always disabled
//** July 27th, 09" (v1.31): Fixed bug so shadows can be disabled if desired.
//** Feb 2nd, 10" (v1.4): Adds ability to specify delay before sub menus appear and disappear, respectively. See showhidedelay variable below
var ddsmoothmenu={
//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:[], right:[]},
transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds
shadow: {enable:false, offsetx:5, offsety:5}, //enable shadow?
showhidedelay: {showdelay: 100, hidedelay: 200}, //set delay in milliseconds before sub menus appear and disappear, respectively
///////Stop configuring beyond here///////////////////////////
detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1, //detect WebKit browsers (Safari, Chrome etc)
detectie6: document.all && !window.XMLHttpRequest,
getajaxmenu:function($, setting){ //function to fetch external page containing the panel DIVs
var $menucontainer=$('#'+setting.contentsource[0]) //reference empty div on page that will hold menu
$menucontainer.html("Loading Menu...")
$.ajax({
url: setting.contentsource[1], //path to external menu file
async: true,
error:function(ajaxrequest){
$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText)
},
success:function(content){
$menucontainer.html(content)
ddsmoothmenu.buildmenu($, setting)
}
})
},
buildmenu:function($, setting){
var smoothmenu=ddsmoothmenu
var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL
$mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu"
var $headers=$mainmenu.find("ul").parent()
$headers.hover(
function(e){
$(this).children('a:eq(0)').addClass('selected')
},
function(e){
$(this).children('a:eq(0)').removeClass('selected')
}
)
$headers.each(function(i){ //loop through each LI header
var $curobj=$(this).css({zIndex: 100-i}) //reference current LI header
var $subul=$(this).find('ul:eq(0)').css({display:'block'})
$subul.data('timers', {})
this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
this.istopheader=$curobj.parents("ul").length==1? true : false //is top level header?
$subul.css({top:this.istopheader && setting.orientation!='v'? this._dimensions.h+"px" : 0})
$curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {})
if (smoothmenu.shadow.enable){
this._shadowoffset={x:(this.istopheader?$subul.offset().left+smoothmenu.shadow.offsetx : this._dimensions.w), y:(this.istopheader? $subul.offset().top+smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets
if (this.istopheader)
$parentshadow=$(document.body)
else{
var $parentLi=$curobj.parents("li:eq(0)")
$parentshadow=$parentLi.get(0).$shadow
}
this.$shadow=$('<div class="ddshadow'+(this.istopheader? ' toplevelshadow' : '')+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+'px', top:this._shadowoffset.y+'px'}) //insert shadow DIV and set it to parent node for the next shadow div
}
$curobj.hover(
function(e){
var $targetul=$subul //reference UL to reveal
var header=$curobj.get(0) //reference header LI as DOM object
clearTimeout($targetul.data('timers').hidetimer)
$targetul.data('timers').showtimer=setTimeout(function(){
header._offsets={left:$curobj.offset().left, top:$curobj.offset().top}
var menuleft=header.istopheader && setting.orientation!='v'? 0 : header._dimensions.w
menuleft=(header._offsets.left+menuleft+header._dimensions.subulw>$(window).width())? (header.istopheader && setting.orientation!='v'? -header._dimensions.subulw+header._dimensions.w : -header._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent
if ($targetul.queue().length<=1){ //if 1 or less queued animations
$targetul.css({left:menuleft+"px", width:header._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
if (smoothmenu.shadow.enable){
var shadowleft=header.istopheader? $targetul.offset().left+ddsmoothmenu.shadow.offsetx : menuleft
var shadowtop=header.istopheader?$targetul.offset().top+smoothmenu.shadow.offsety : header._shadowoffset.y
if (!header.istopheader && ddsmoothmenu.detectwebkit){ //in WebKit browsers, restore shadow's opacity to full
header.$shadow.css({opacity:1})
}
header.$shadow.css({overflow:'', width:header._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:header._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)
}
}
}, ddsmoothmenu.showhidedelay.showdelay)
},
function(e){
var $targetul=$subul
var header=$curobj.get(0)
clearTimeout($targetul.data('timers').showtimer)
$targetul.data('timers').hidetimer=setTimeout(function(){
$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
if (smoothmenu.shadow.enable){
if (ddsmoothmenu.detectwebkit){ //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them
header.$shadow.children('div:eq(0)').css({opacity:0})
}
header.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)
}
}, ddsmoothmenu.showhidedelay.hidedelay)
}
) //end hover
}) //end $headers.each()
$mainmenu.find("ul").css({display:'none', visibility:'visible'})
},
init:function(setting){
if (typeof setting.customtheme=="object" && setting.customtheme.length==2){ //override default menu colors (default/hover) with custom set?
var mainmenuid='#'+setting.mainmenuid
var mainselector=(setting.orientation=="v")? mainmenuid : mainmenuid+', '+mainmenuid
document.write('<style type="text/css">\n'
+mainselector+' ul li a {background:'+setting.customtheme[0]+';}\n'
+mainmenuid+' ul li a:hover {background:'+setting.customtheme[1]+';}\n'
+'</style>')
}
this.shadow.enable=(document.all && !window.XMLHttpRequest)? false : this.shadow.enable //in IE6, always disable shadow
jQuery(document).ready(function($){ //ajax menu?
if (typeof setting.contentsource=="object"){ //if external ajax menu
ddsmoothmenu.getajaxmenu($, setting)
}
else{ //else if markup menu
ddsmoothmenu.buildmenu($, setting)
}
})
}
} //end ddsmoothmenu variable

4
www/style/js/jquery-1.6.4.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,260 @@
/*!
* jQuery corner plugin: simple corner rounding
* Examples and documentation at: http://jquery.malsup.com/corner/
* version 2.12 (23-MAY-2011)
* Requires jQuery v1.3.2 or later
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Authors: Dave Methvin and Mike Alsup
*/
/**
* corner() takes a single string argument: $('#myDiv').corner("effect corners width")
*
* effect: name of the effect to apply, such as round, bevel, notch, bite, etc (default is round).
* corners: one or more of: top, bottom, tr, tl, br, or bl. (default is all corners)
* width: width of the effect; in the case of rounded corners this is the radius.
* specify this value using the px suffix such as 10px (yes, it must be pixels).
*/
;(function($) {
var style = document.createElement('div').style,
moz = style['MozBorderRadius'] !== undefined,
webkit = style['WebkitBorderRadius'] !== undefined,
radius = style['borderRadius'] !== undefined || style['BorderRadius'] !== undefined,
mode = document.documentMode || 0,
noBottomFold = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8),
expr = $.browser.msie && (function() {
var div = document.createElement('div');
try { div.style.setExpression('width','0+0'); div.style.removeExpression('width'); }
catch(e) { return false; }
return true;
})();
$.support = $.support || {};
$.support.borderRadius = moz || webkit || radius; // so you can do: if (!$.support.borderRadius) $('#myDiv').corner();
function sz(el, p) {
return parseInt($.css(el,p))||0;
};
function hex2(s) {
s = parseInt(s).toString(16);
return ( s.length < 2 ) ? '0'+s : s;
};
function gpc(node) {
while(node) {
var v = $.css(node,'backgroundColor'), rgb;
if (v && v != 'transparent' && v != 'rgba(0, 0, 0, 0)') {
if (v.indexOf('rgb') >= 0) {
rgb = v.match(/\d+/g);
return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
}
return v;
}
if (node.nodeName.toLowerCase() == 'html')
break;
node = node.parentNode; // keep walking if transparent
}
return '#ffffff';
};
function getWidth(fx, i, width) {
switch(fx) {
case 'round': return Math.round(width*(1-Math.cos(Math.asin(i/width))));
case 'cool': return Math.round(width*(1+Math.cos(Math.asin(i/width))));
case 'sharp': return width-i;
case 'bite': return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
case 'slide': return Math.round(width*(Math.atan2(i,width/i)));
case 'jut': return Math.round(width*(Math.atan2(width,(width-i-1))));
case 'curl': return Math.round(width*(Math.atan(i)));
case 'tear': return Math.round(width*(Math.cos(i)));
case 'wicked': return Math.round(width*(Math.tan(i)));
case 'long': return Math.round(width*(Math.sqrt(i)));
case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
case 'dogfold':
case 'dog': return (i&1) ? (i+1) : width;
case 'dog2': return (i&2) ? (i+1) : width;
case 'dog3': return (i&3) ? (i+1) : width;
case 'fray': return (i%2)*width;
case 'notch': return width;
case 'bevelfold':
case 'bevel': return i+1;
case 'steep': return i/2 + 1;
case 'invsteep':return (width-i)/2+1;
}
};
$.fn.corner = function(options) {
// in 1.3+ we can fix mistakes with the ready state
if (this.length == 0) {
if (!$.isReady && this.selector) {
var s = this.selector, c = this.context;
$(function() {
$(s,c).corner(options);
});
}
return this;
}
return this.each(function(index){
var $this = $(this),
// meta values override options
o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase(),
keep = /keep/.test(o), // keep borders?
cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]), // corner color
sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]), // strip color
width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10, // corner width
re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog|invsteep|steep/,
fx = ((o.match(re)||['round'])[0]),
fold = /dogfold|bevelfold/.test(o),
edges = { T:0, B:1 },
opts = {
TL: /top|tl|left/.test(o), TR: /top|tr|right/.test(o),
BL: /bottom|bl|left/.test(o), BR: /bottom|br|right/.test(o)
},
// vars used in func later
strip, pad, cssHeight, j, bot, d, ds, bw, i, w, e, c, common, $horz;
if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
opts = { TL:1, TR:1, BL:1, BR:1 };
// support native rounding
if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) {
if (opts.TL)
$this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px');
if (opts.TR)
$this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px');
if (opts.BL)
$this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px');
if (opts.BR)
$this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px');
return;
}
strip = document.createElement('div');
$(strip).css({
overflow: 'hidden',
height: '1px',
minHeight: '1px',
fontSize: '1px',
backgroundColor: sc || 'transparent',
borderStyle: 'solid'
});
pad = {
T: parseInt($.css(this,'paddingTop'))||0, R: parseInt($.css(this,'paddingRight'))||0,
B: parseInt($.css(this,'paddingBottom'))||0, L: parseInt($.css(this,'paddingLeft'))||0
};
if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE
if (!keep) this.style.border = 'none';
strip.style.borderColor = cc || gpc(this.parentNode);
cssHeight = $(this).outerHeight();
for (j in edges) {
bot = edges[j];
// only add stips if needed
if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
d = document.createElement('div');
$(d).addClass('jquery-corner');
ds = d.style;
bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);
if (bot && cssHeight != 'auto') {
if ($.css(this,'position') == 'static')
this.style.position = 'relative';
ds.position = 'absolute';
ds.bottom = ds.left = ds.padding = ds.margin = '0';
if (expr)
ds.setExpression('width', 'this.parentNode.offsetWidth');
else
ds.width = '100%';
}
else if (!bot && $.browser.msie) {
if ($.css(this,'position') == 'static')
this.style.position = 'relative';
ds.position = 'absolute';
ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';
// fix ie6 problem when blocked element has a border width
if (expr) {
bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"');
}
else
ds.width = '100%';
}
else {
ds.position = 'relative';
ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' :
(pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';
}
for (i=0; i < width; i++) {
w = Math.max(0,getWidth(fx,i, width));
e = strip.cloneNode(false);
e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
}
if (fold && $.support.boxModel) {
if (bot && noBottomFold) continue;
for (c in opts) {
if (!opts[c]) continue;
if (bot && (c == 'TL' || c == 'TR')) continue;
if (!bot && (c == 'BL' || c == 'BR')) continue;
common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor };
$horz = $('<div/>').css(common).css({ width: width + 'px', height: '1px' });
switch(c) {
case 'TL': $horz.css({ bottom: 0, left: 0 }); break;
case 'TR': $horz.css({ bottom: 0, right: 0 }); break;
case 'BL': $horz.css({ top: 0, left: 0 }); break;
case 'BR': $horz.css({ top: 0, right: 0 }); break;
}
d.appendChild($horz[0]);
var $vert = $('<div/>').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' });
switch(c) {
case 'TL': $vert.css({ left: width }); break;
case 'TR': $vert.css({ right: width }); break;
case 'BL': $vert.css({ left: width }); break;
case 'BR': $vert.css({ right: width }); break;
}
d.appendChild($vert[0]);
}
}
}
}
});
};
$.fn.uncorner = function() {
if (radius || moz || webkit)
this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0);
$('div.jquery-corner', this).remove();
return this;
};
// expose options
$.fn.corner.defaults = {
useNative: true, // true if plugin should attempt to use native browser support for border radius rounding
metaAttr: 'data-corner' // name of meta attribute to use for options
};
})(jQuery);
/*-----------------------------------------------------------------------------------*/
/* CORNER
/*-----------------------------------------------------------------------------------*/
$(function(){
$('.carousel ul li img, #prev, #next, .jquery-slider-slide img, .col4 img, .items img, ul.popular-posts li img, .sidebox ul.popular-posts li img, .post img, a.button, .forms fieldset .btn-submit, #filtering-nav li a, .page-navi ul li a, .map iframe, .text-input, .text-area, .form-container .response, .overlay, ul#button_quotes button, ul.tabs li a, .tab_container, h2.trigger, .togglebox, pre, .download-box, .warning-box, .info-box, .note-box, .round, .jta-tweet-list-controls-button, .b-slider img, .e-showcase-navigation ul li, ul.works li img').corner("3px");
$('.date').corner("75px");
});

View File

@ -0,0 +1,205 @@
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t + b;
return -c/2 * ((--t)*(t-2) - 1) + b;
},
easeInCubic: function (x, t, b, c, d) {
return c*(t/=d)*t*t + b;
},
easeOutCubic: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t + 1) + b;
},
easeInOutCubic: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=2)*t*t + 2) + b;
},
easeInQuart: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t + b;
},
easeOutQuart: function (x, t, b, c, d) {
return -c * ((t=t/d-1)*t*t*t - 1) + b;
},
easeInOutQuart: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
return -c/2 * ((t-=2)*t*t*t - 2) + b;
},
easeInQuint: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t*t + b;
},
easeOutQuint: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t*t*t + 1) + b;
},
easeInOutQuint: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
return c/2*((t-=2)*t*t*t*t + 2) + b;
},
easeInSine: function (x, t, b, c, d) {
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
},
easeOutSine: function (x, t, b, c, d) {
return c * Math.sin(t/d * (Math.PI/2)) + b;
},
easeInOutSine: function (x, t, b, c, d) {
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
},
easeInExpo: function (x, t, b, c, d) {
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
},
easeOutExpo: function (x, t, b, c, d) {
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
},
easeInOutExpo: function (x, t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
easeInCirc: function (x, t, b, c, d) {
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
},
easeOutCirc: function (x, t, b, c, d) {
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
},
easeInOutCirc: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
},
easeInElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
},
easeOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
},
easeInOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
},
easeInBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*(t/=d)*t*((s+1)*t - s) + b;
},
easeOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
},
easeInOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
},
easeInBounce: function (x, t, b, c, d) {
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
},
easeOutBounce: function (x, t, b, c, d) {
if ((t/=d) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
} else if (t < (2.5/2.75)) {
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
} else {
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
}
},
easeInOutBounce: function (x, t, b, c, d) {
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
}
});
/*
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright © 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/

12
www/style/js/jquery.masonry.min.js vendored Normal file
View File

@ -0,0 +1,12 @@
/*************************************************
** jQuery Masonry version 1.3.2
** Copyright David DeSandro, licensed MIT
** http://desandro.com/resources/jquery-masonry
**************************************************/
(function(e){var n=e.event,o;n.special.smartresize={setup:function(){e(this).bind("resize",n.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",n.special.smartresize.handler)},handler:function(j,l){var g=this,d=arguments;j.type="smartresize";o&&clearTimeout(o);o=setTimeout(function(){jQuery.event.handle.apply(g,d)},l==="execAsap"?0:100)}};e.fn.smartresize=function(j){return j?this.bind("smartresize",j):this.trigger("smartresize",["execAsap"])};e.fn.masonry=function(j,l){var g=
{getBricks:function(d,b,a){var c=a.itemSelector===undefined;b.$bricks=a.appendedContent===undefined?c?d.children():d.find(a.itemSelector):c?a.appendedContent:a.appendedContent.filter(a.itemSelector)},placeBrick:function(d,b,a,c,h){b=Math.min.apply(Math,a);for(var i=b+d.outerHeight(true),f=a.length,k=f,m=c.colCount+1-f;f--;)if(a[f]==b)k=f;d.applyStyle({left:c.colW*k+c.posLeft,top:b},e.extend(true,{},h.animationOptions));for(f=0;f<m;f++)c.colY[k+f]=i},setup:function(d,b,a){g.getBricks(d,a,b);if(a.masoned)a.previousData=
d.data("masonry");a.colW=b.columnWidth===undefined?a.masoned?a.previousData.colW:a.$bricks.outerWidth(true):b.columnWidth;a.colCount=Math.floor(d.width()/a.colW);a.colCount=Math.max(a.colCount,1)},arrange:function(d,b,a){var c;if(!a.masoned||b.appendedContent!==undefined)a.$bricks.css("position","absolute");if(a.masoned){a.posTop=a.previousData.posTop;a.posLeft=a.previousData.posLeft}else{d.css("position","relative");var h=e(document.createElement("div"));d.prepend(h);a.posTop=Math.round(h.position().top);
a.posLeft=Math.round(h.position().left);h.remove()}if(a.masoned&&b.appendedContent!==undefined){a.colY=a.previousData.colY;for(c=a.previousData.colCount;c<a.colCount;c++)a.colY[c]=a.posTop}else{a.colY=[];for(c=a.colCount;c--;)a.colY.push(a.posTop)}e.fn.applyStyle=a.masoned&&b.animate?e.fn.animate:e.fn.css;b.singleMode?a.$bricks.each(function(){var i=e(this);g.placeBrick(i,a.colCount,a.colY,a,b)}):a.$bricks.each(function(){var i=e(this),f=Math.ceil(i.outerWidth(true)/a.colW);f=Math.min(f,a.colCount);
if(f===1)g.placeBrick(i,a.colCount,a.colY,a,b);else{var k=a.colCount+1-f,m=[];for(c=0;c<k;c++){var p=a.colY.slice(c,c+f);m[c]=Math.max.apply(Math,p)}g.placeBrick(i,k,m,a,b)}});a.wallH=Math.max.apply(Math,a.colY);d.applyStyle({height:a.wallH-a.posTop},e.extend(true,[],b.animationOptions));a.masoned||setTimeout(function(){d.addClass("masoned")},1);l.call(a.$bricks);d.data("masonry",a)},resize:function(d,b,a){a.masoned=!!d.data("masonry");var c=d.data("masonry").colCount;g.setup(d,b,a);a.colCount!=c&&
g.arrange(d,b,a)}};return this.each(function(){var d=e(this),b={};b.masoned=!!d.data("masonry");var a=b.masoned?d.data("masonry").options:{},c=e.extend({},e.fn.masonry.defaults,a,j),h=a.resizeable;b.options=c.saveOptions?c:a;l=l||function(){};g.getBricks(d,b,c);if(!b.$bricks.length)return this;g.setup(d,c,b);g.arrange(d,c,b);!h&&c.resizeable&&e(window).bind("smartresize.masonry",function(){g.resize(d,c,b)});h&&!c.resizeable&&e(window).unbind("smartresize.masonry")})};e.fn.masonry.defaults={singleMode:false,
columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery);

194
www/style/js/scripts.js Normal file
View File

@ -0,0 +1,194 @@
/*-----------------------------------------------------------------------------------*/
/* TOGGLE
/*-----------------------------------------------------------------------------------*/
$(document).ready(function(){
//Hide the tooglebox when page load
$(".togglebox").hide();
//slide up and down when click over heading 2
$("h2").click(function(){
// slide toggle effect set to slow you can set it to fast too.
$(this).toggleClass("active").next(".togglebox").slideToggle("slow");
return true;
});
});
/*-----------------------------------------------------------------------------------*/
/* TABS
/*-----------------------------------------------------------------------------------*/
$(document).ready(function() {
//Default Action
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
//On Click Event
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active content
return false;
});
});
/*-----------------------------------------------------------------------------------*/
/* MENU
/*-----------------------------------------------------------------------------------*/
ddsmoothmenu.init({
mainmenuid: "menu",
orientation: 'v',
classname: 'menu-v',
contentsource: "markup"
})
/*-----------------------------------------------------------------------------------*/
/* IMAGE HOVER
/*-----------------------------------------------------------------------------------*/
$(function() {
$('.post a img, ul.works li a img, ul.popular-posts a img').css("opacity","1.0");
$('.post a img, ul.works li a img, ul.popular-posts a img').hover(function () {
$(this).stop().animate({ opacity: 0.85 }, "fast"); },
function () {
$(this).stop().animate({ opacity: 1.0 }, "fast");
});
});
/*-----------------------------------------------------------------------------------*/
/* SIDEBAR HEIGHT
/*-----------------------------------------------------------------------------------*/
jQuery(document).ready(function($){
var h = $(document).height();
$('#sidebar').css({height: h+'px'});
});
/*-----------------------------------------------------------------------------------*/
/* PRETTYPHOTO
/*-----------------------------------------------------------------------------------*/
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({autoplay_slideshow: false, overlay_gallery: false, social_tools:false, deeplinking: false, theme:'pp_default', slideshow:5000});
});
/*-----------------------------------------------------------------------------------*/
/* PORTFOLIO
/*-----------------------------------------------------------------------------------*/
$(document).ready(function() {
var
speed = 1000, // animation speed
$wall = $('#portfolio .items'),
masonryOptions = { // initial masonry options
itemSelector: '.box:not(.invis)',
animate: true,
animationOptions: {
duration: speed,
queue: false
}
};
$wall.imagesLoaded(function(){
$wall.masonry(masonryOptions);
// Create array of filters from link href
var arrFilter = [];
$('#filtering-nav a').each(function(){
fhash = $(this).attr('href').replace('#','');
if(fhash != 'all'){
arrFilter.push(fhash);
}
});
// Get the parameter value after the # symbol
var url=document.URL.split('#')[1];
if(url == undefined){
url = 'all';
}
$('#filtering-nav a.'+url).parent().addClass('active');
if(jQuery.inArray(url, arrFilter) > '-1'){
// set masonry options animate to false
masonryOptions.animate = false;
// hide boxes that don't match the filter class
$wall.children().not('.'+url).toggleClass('invis').hide();
}
// imageSetCss($(".box"));
// run masonry again
$wall.masonry(masonryOptions);
// imageFadeIn($(".box"));
$wall.animate({opacity: 1},1000);
});
$('#filtering-nav a').click(function(e){
var color = $(this).attr('class');
filterClass = '.' + color;
$('#filtering-nav li').removeClass('active');
$(this).parent().addClass('active');
if(filterClass=='.all') {
// show all hidden boxes
$wall.children('.invis').toggleClass('invis').fadeIn(speed);
} else {
// hide visible boxes
$wall.children().not(filterClass).not('.invis').toggleClass('invis').fadeOut(speed);
// show hidden boxes
$wall.children(filterClass+'.invis').toggleClass('invis').fadeIn(speed);
}
$wall.masonry({animate: true});
// set hash in URL
location.hash = color;
e.preventDefault();
});
});
$.fn.imagesLoaded = function(a) {
var
b=this.find("img"),
c=[],
d=this,
e=b.length;
if(!b.length){
a.call(this);
return this
}
b.one("load error",function(){
--e===0&&(e=b.length,b.one("load error",function(){
--e===0&&a.call(d)}).each(function(){
this.src=c.shift()
})
)}
).each(function(){
c.push(this.src),this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="
});
return this
};
/*-----------------------------------------------------------------------------------*/
/* HOVER
/*-----------------------------------------------------------------------------------*/
$(document).ready(function() {
$('.items .box .image, .items .box .left-side, .carousel ul li').mouseenter(function(e) {
$(this).children('a').children('span').fadeIn(200);
}).mouseleave(function(e) {
$(this).children('a').children('span').fadeOut(200);
});
});
/*-----------------------------------------------------------------------------------*/
/* SLIDER
/*-----------------------------------------------------------------------------------*/
$(window).load(function() {
$('.flexslider').flexslider({
slideshowSpeed: 4000
});
});