Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update website

  • Loading branch information...
commit 951b21ea1eafbef7978de347c27f2d54cbcd7e70 1 parent e657442
David authored
View
7 blank.html
@@ -0,0 +1,7 @@
+<html>
+ <head>
+ <title>Intentionally left blank</title>
+ </head>
+ <body>
+ </body>
+</html>
View
41 borg.bib
@@ -0,0 +1,41 @@
+@ARTICLE{hadka12a,
+ author = {David Hadka and Patrick Reed},
+ title = {Diagnostic Assessment of Search Controls and Failure Modes in Many-Objective Evolutionary Optimization},
+ journal = {Evolutionary Computation},
+ year = {2012},
+ volume = {20},
+ number = {3},
+ pages = {423--452}
+}
+
+@ARTICLE{hadka12b,
+ author = {David Hadka and Patrick Reed},
+ title = {Borg: An Auto-Adaptive Many-Objective Evolutionary Computing Framework},
+ journal = {Evolutionary Computation},
+ year = {2012}
+}
+
+@INPROCEEDINGS{hadka12c,
+ author = {David Hadka and Patrick Reed and Timothy Simpson},
+ title = {Diagnostic Assessment of the Borg MOEA for Many-Objective Product Family Design Problems},
+ booktitle = {WCCI 2012 World Congress on Computational Intelligence, Congress on Evolutionary Computation},
+ address = {Brisbane, AUS},
+ month = {June},
+ year = {2012}
+}
+
+@ARTICLE{reed12,
+ author = {Patrick M. Reed and David M. Hadka and Jonathan D. Herman and Joseph R. Kasprzyk and Joshua B. Kollat},
+ title = {Evolutionary Multiobjective Optimization in Water Resources: The Past, Present, and Future},
+ journal = {Advances in Water Resources},
+ year = {2012}
+}
+
+@INPROCEEDINGS{woodruff12,
+ author = {Matthew Woodruff and David Hadka and Patrick Reed},
+ title = {Auto-Adaptive Search Capabilities of the New Borg MOEA: A Detailed Comparison on Product Family Design Problems},
+ booktitle = {12th AIAA Aviation Technology, Integration, and Operations (ATIO) Conference and 14th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference},
+ address = {Indianapolis, Indiana},
+ month = {Sept.},
+ year = {2012}
+}
View
57 css/jquery.alerts.css
@@ -0,0 +1,57 @@
+#popup_container {
+ font-family: Arial, sans-serif;
+ font-size: 12px;
+ min-width: 300px; /* Dialog will be no smaller than this */
+ max-width: 600px; /* Dialog will wrap after this width */
+ background: #FFF;
+ border: solid 5px #999;
+ color: #000;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+}
+
+#popup_title {
+ font-size: 14px;
+ font-weight: bold;
+ text-align: center;
+ line-height: 1.75em;
+ color: #666;
+ background: #CCC url(../images/title.gif) top repeat-x;
+ border: solid 1px #FFF;
+ border-bottom: solid 1px #999;
+ cursor: default;
+ padding: 0em;
+ margin: 0em;
+}
+
+#popup_content {
+ background: 16px 16px no-repeat url(../images/info.gif);
+ padding: 1em 1.75em;
+ margin: 0em;
+}
+
+#popup_content.alert {
+ background-image: url(../images/info.gif);
+}
+
+#popup_content.confirm {
+ background-image: url(../images/important.gif);
+}
+
+#popup_content.prompt {
+ background-image: url(../images/help.gif);
+}
+
+#popup_message {
+ padding-left: 48px;
+}
+
+#popup_panel {
+ text-align: center;
+ margin: 1em 0em 0em 1em;
+}
+
+#popup_prompt {
+ margin: .5em 0em;
+}
View
2  css/style.css
@@ -446,7 +446,7 @@ section#main .row .col h2 {
position: absolute;
left: 50%;
bottom: -45px;
- margin-left: -30px ; /* Tweak this to center bullets */
+ margin-left: -45px ; /* Tweak this to center bullets */
}
.slider-wrapper .nivo-controlNav a {
display: block;
View
8 endnote.xml
@@ -0,0 +1,8 @@
+<XML><RECORDS>
+
+<RECORD><REFERENCE_TYPE>0</REFERENCE_TYPE><REFNUM>1</REFNUM><AUTHORS><AUTHOR>Hadka, David</AUTHOR><AUTHOR>Reed, Patrick</AUTHOR></AUTHORS><YEAR>2012</YEAR><TITLE>Diagnostic Assessment of Search Controls and Failure Modes in Many-Objective Evolutionary Optimization</TITLE><SECONDARY_TITLE>Evolutionary Computation</SECONDARY_TITLE><VOLUME>20</VOLUME><NUMBER>3</NUMBER><PAGES>423-452</PAGES><LABEL>hadka12a</LABEL></RECORD>
+
+<RECORD><REFERENCE_TYPE>0</REFERENCE_TYPE><REFNUM>2</REFNUM><AUTHORS><AUTHOR>Hadka, David</AUTHOR><AUTHOR>Reed, Patrick</AUTHOR></AUTHORS><YEAR>2012</YEAR><TITLE>Borg: An Auto-Adaptive Many-Objective Evolutionary Computing Framework</TITLE><SECONDARY_TITLE>Evolutionary Computation</SECONDARY_TITLE><LABEL>hadka12b</LABEL></RECORD>
+
+<RECORD><REFERENCE_TYPE>47</REFERENCE_TYPE><REFNUM>3</REFNUM><AUTHORS><AUTHOR>Hadka, David</AUTHOR><AUTHOR>Reed, Patrick</AUTHOR><AUTHOR>Simpson, Timothy</AUTHOR></AUTHORS><YEAR>2012</YEAR><DATE>June</DATE><TITLE>Diagnostic Assessment of the Borg MOEA for Many-Objective Product Family Design Problems</TITLE><SECONDARY_TITLE>WCCI 2012 World Congress on Computational Intelligence, Congress on Evolutionary Computation</SECONDARY_TITLE><PLACE_PUBLISHED>Brisbane, AUS</PLACE_PUBLISHED><LABEL>hadka12c</LABEL></RECORD>
+
View
BIN  images/help.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/important.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/info.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/slides/slide1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/slides/slide2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/slides/slide3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/slides/slide4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  images/title.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
99 index.html
@@ -16,6 +16,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" />
<link rel="stylesheet" href="css/jquery.fancybox-1.3.4.css" type="text/css" />
+ <link rel="stylesheet" href="css/jquery.alerts.css" type="text/css" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@@ -28,6 +29,7 @@
<script src="js/jquery.nivo.slider.pack.js"></script>
<script src="js/jquery.easing-1.3.pack.js"></script>
<script src="js/jquery.fancybox-1.3.4.pack.js"></script>
+ <script src="js/jquery.alerts.js"></script>
<script src="js/init.js"></script>
</head>
@@ -40,7 +42,6 @@
<hgroup>
<h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
- <!--<h3>Just Another Styleshout Template</h3>-->
</hgroup>
<nav>
@@ -65,19 +66,28 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<p class="intro">The Borg Multiobjective Evolutionary Algorithm (MOEA) is a state-of-the-art optimization
algorithm developed by David Hadka and Patrick Reed at the Pennsylvania State University. Borg is freely
- available for academic and non-commercial use. This site provides information about this algorithm and
- a form to request access to the source code.</p>
+ available for academic and non-commercial use. Use this site to learn more about the Borg MOEA and request
+ access to its source code.</p>
</div>
<div class="slider-wrapper">
-
<div id="slider" class="nivoSlider">
- <img src="images/slides/slide1.png" width="383" height="198" alt="" />
- <img src="images/slides/slide2.png" width="383" height="198" alt="" />
- <img src="images/slides/slide3.png" width="383" height="198" alt="" title="#htmlcaption"/>
+ <img src="images/slides/slide1.png" width="383" height="198" alt="" title="#interface" />
+ <img src="images/slides/slide2.png" width="383" height="198" alt="" title="#operators" />
+ <img src="images/slides/slide3.png" width="383" height="198" alt="" title="#probabilities"/>
+ <img src="images/slides/slide4.png" width="383" height="198" alt="" title="#sensitivities"/>
+ </div>
+ <div id="interface" class="nivo-html-caption">
+ Easy-to-use command line interface
+ </div>
+ <div id="operators" class="nivo-html-caption">
+ Exploit multiple search operators when solving a problem
</div>
- <div id="htmlcaption" class="nivo-html-caption">
- <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
+ <div id="probabilities" class="nivo-html-caption">
+ Operator probabilities are auto-adapted at runtime
+ </div>
+ <div id="sensitivities" class="nivo-html-caption">
+ Robust, reliable, and controllable search
</div>
</div>
@@ -92,7 +102,7 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<section class="col mid">
<h2>Adaptive Search</h2>
- <p>Borg auto-adapts its search operators at runtime, tailoring itself to your optimization
+ <p>Borg uses an ensemble of search operators, auto-adapting their use at runtime to tailor itself to your optimization
problem.</p>
</section>
@@ -115,16 +125,11 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<p>The Borg MOEA is freely available to academic and non-commercial users. Please
complete the form below to request access to the source code. You will receive an
- e-mail within three business days with information about downloading the Borg MOEA</p>
+ e-mail within three business days with information about downloading the Borg MOEA.</p>
<div class="primary">
-
<script type="text/javascript">
function custommsg() {
- //document.getElementById("form-message").style.display="";
- //document.getElementById("form-message").innerHTML="";
- //document.getElementById("form-container").style.display="none";
-
$("#form-message").show('fast');
$('html, body').animate({
@@ -136,27 +141,32 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
function validate(f){
if (f.elements[0].value.length == 0) {
- alert("Please provide your full name");
+ jAlert("Please provide your full name.", "Missing Field");
return false;
}
if (f.elements[1].value.length == 0) {
- alert("Please provide your e-mail address");
+ jAlert("Please provide your e-mail address.", "Missing Field");
+ return false;
+ }
+
+ if (!f.elements[1].value.match("^.+@.+$")) {
+ jAlert("Please provide a valid e-mail address. We will send download instructions to this address.", "Missing Field");
return false;
}
if (f.elements[2].value.length == 0) {
- alert("Please provide the company, organization, or university you are affiliated with");
+ jAlert("Please provide the company, organization, or university you are affiliated with.", "Missing Field");
return false;
}
if (f.elements[3].value.length == 0) {
- alert("Please specify the indended use of the Borg MOEA (e.g., academic research)");
+ jAlert("Please specify the indended use of the Borg MOEA (e.g., academic research).", "Missing Field");
return false;
}
if (!f.elements[5].checked) {
- alert("Please read the license agreement and check the checkbox if you agree to the license terms");
+ jAlert("Please read the license agreement and check the checkbox if you agree to the license terms.", "Missing Field");
return false;
}
@@ -165,7 +175,7 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
</script>
<div class="ss-form-container" id="form-container">
-<form action="" method="POST" target="fake-target" onsubmit="this.action='https://docs.google.com/spreadsheet/formResponse?formkey=dEZtVlkwUklJMVJ1TU41N3dpaUhuSHc6MQ'; if (validate(this)) {custommsg(); return true;} else return false;">
+<form action="https://docs.google.com/spreadsheet/formResponse?formkey=dEZtVlkwUklJMVJ1TU41N3dpaUhuSHc6MQ" method="POST" target="fake-target" onsubmit="if (validate(this)) {custommsg(); return true;} else return false;">
<div>
@@ -197,15 +207,12 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<textarea name="entry.5.single" rows="20" cols="50" id="license" readonly="readonly" >
THE PENNSYLVANIA STATE UNIVERSITY RESEARCH AND EDUCATIONAL USE LICENSE
-BE ADVISED: This Agreement is a legal agreement between “LICENSEE” (defined below) and The Pennsylvania State University, a non-profit corporation duly organized and existing under the laws of the Commonwealth of Pennsylvania (“UNIVERSITY”). By installing, downloading, accessing or otherwise using the SOFTWARE (defined below), LICENSEE agrees to be bound by the terms of this Agreement. If LICENSEE does not agree with the terms of this Agreement, do not install, access, or use the SOFTWARE.
-
-
-WHEREAS, Dr. Patrick Reed and Dr. David Hadka, employees of The Pennsylvania State University, have created and developed certain computer software entitled “BORG: Many-Objective Evolutionary Computing Framework" (the “SOFTWARE”);
+BE ADVISED: This Agreement is a legal agreement between "LICENSEE" (defined below) and The Pennsylvania State University, a non-profit corporation duly organized and existing under the laws of the Commonwealth of Pennsylvania ("UNIVERSITY"). By installing, downloading, accessing or otherwise using the SOFTWARE (defined below), LICENSEE agrees to be bound by the terms of this Agreement. If LICENSEE does not agree with the terms of this Agreement, do not install, access, or use the SOFTWARE.
+WHEREAS, Dr. Patrick Reed and Dr. David Hadka, employees of The Pennsylvania State University, have created and developed certain computer software entitled "BORG: Many-Objective Evolutionary Computing Framework" (the "SOFTWARE");
WHEREAS, patent protection for the SOFTWARE is being pursued by the UNIVERSITY including, but not limited to, United States patent application number 13/356,391 (pending);
-
WHEREAS, the UNIVERSITY is dedicated to fostering and advancing scientific research, this SOFTWARE is made available to the noncommercial research and educational community as a public service by the UNIVERSITY. [Please contact the UNIVERSITY Office of Technology Management for information on other licensing arrangements (i.e. proprietary commercial applications)].
WHEREAS, the UNIVERSITY is the owner of and has the right to license the SOFTWARE and the associated patent rights;
@@ -215,37 +222,30 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
1. Definitions
-1.1 “LICENSEE” shall mean the person installing the SOFTWARE if it is solely for personal use by that person on the personal equipment of that person. If the SOFTWARE is being installed on equipment for use by another legal entity, such as a corporation, limited liability company, partnership, or institution, then the person installing the SOFTWARE by proceeding with the installation certifies that he or she has authority to bind that legal entity to this Agreement; and that legal entity shall be considered to be the LICENSEE.
-
+1.1 "LICENSEE" shall mean the person installing the SOFTWARE if it is solely for personal use by that person on the personal equipment of that person. If the SOFTWARE is being installed on equipment for use by another legal entity, such as a corporation, limited liability company, partnership, or institution, then the person installing the SOFTWARE by proceeding with the installation certifies that he or she has authority to bind that legal entity to this Agreement; and that legal entity shall be considered to be the LICENSEE.
2. Grant and Obligations
Under this License Agreement, LICENSEE is granted nonexclusive and royalty-free rights to practice any patent rights associated with the SOFTWARE, and the SOFTWARE may be used as-is or may be modified, provided that your practice or use is solely for noncommercial, research and education purposes. You may not distribute the original version or modifications of the SOFTWARE for any purpose. Both the original version and modified versions of the SOFTWARE may be copied and performed provided that the following terms and conditions are met:
-
2.1 LICENSEE is affiliated with a nonprofit, noncommercial research and educational institution and shall identify the name of the institution and the names(s) of the users of the SOFTWARE to UNIVERSITY via Patrick Reed at the time that LICENSEE acquires this license,
2.2 Modified versions of the SOFTWARE must clearly state that the work is a modification of the SOFTWARE and must prominently display the full SOFTWARE title and appropriate copyright notices. Copyright management information (software identifier and version number, copyright notice and license) shall be retained in all versions of the SOFTWARE.
-
2.3 If modified, the source code, documentation, and user run-time elements of the SOFTWARE should be clearly labeled by identifying the name of the person(s) and/or organization making the modifications, the date of modification, and a written description of the modifications.
-
2.4 The UNIVERSITY may make modifications to the SOFTWARE that are substantially similar to modified versions of the SOFTWARE created by others, and may make, use, sell, copy, distribute, publicly display, and perform such modifications, including making such modifications available under this or other licenses, without obligation or restriction.
-
2.5 Neither the name nor any of the logos of the UNIVERSITY may be used in advertising or publicity pertaining to the use or modification of the SOFTWARE without the specific, prior written permission of an authorized representative of the UNIVERSITY.
-
2.6 Any publications, reports, course lectures, and/or presentations that employ the SOFTWARE or its derivatives will acknowledge the use of the SOFTWARE or of any of its derivatives by citing the SOFTWARE developed by Dr. Reed and Dr. Hadka.
3. Disclaimer of Warranty
-THIS SOFTWARE IS MADE AVAILABLE “AS-IS.” THE PENNSYLVANIA STATE UNIVERSITY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, THE WARRANTY OF NONINFRINGEMENT AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE PENNSYLVANIA STATE UNIVERSITY BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING DIRECT, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY USE OR PERFORMANCE OF THE SOFTWARE INCLUDING, WITHOUT LIMITATION, LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION FOR CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY.
-
+THIS SOFTWARE IS MADE AVAILABLE "AS-IS." THE PENNSYLVANIA STATE UNIVERSITY DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, THE WARRANTY OF NONINFRINGEMENT AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE PENNSYLVANIA STATE UNIVERSITY BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING DIRECT, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES RESULTING FROM ANY USE OR PERFORMANCE OF THE SOFTWARE INCLUDING, WITHOUT LIMITATION, LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION FOR CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY.
</textarea><br />
- <input type="checkbox" name="entry.4.group" value="I agree" class="checkbox">By checking this box, you agree to the license terms above.<br>
+ <input type="checkbox" name="entry.4.group" value="I agree" class="checkbox">By checking this box, you understand and agree to the license terms above.<br>
</div>
@@ -256,8 +256,7 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
</form>
</div>
<div class="ss-form-container" style="display:none;" id="form-message"><b>Your request for the Borg MOEA has been received. We will contact you by e-mail in three business days.</b></div>
-
-<iframe src="#" id="fake-target" name="fake-target" style="width:0px; height:0px; border:0px;"></iframe><br />
+<iframe id="fake-target" src="blank.html" style="width:0px; height:0px; border:0px;"></iframe>
</div>
<a class="back-to-top" href="#main">Back to Top</a>
@@ -270,20 +269,6 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<div class="primary">
-<!--
-<p><a href="#"><img src="images/pdf.png" class="float-left" width="48" height="48" alt="Download PDF">
-Diagnostic Assessment of the Borg MOEA on Many-Objective Product Family Design Problems</a>. Applies the Borg MOEA to a product family design problem aiming to design three general aviation aircraft that meet 9 performance and economic constraints.</p>
-
-<p><a href="#"><img src="images/pdf.png" class="float-left" width="48" height="48" alt="Download PDF">
-Evolutionary Multiobjective Optimization in Water Resources: The Past, Present, and Future</a>. Benchmarks the Borg MOEA against several high-profile MOEAs on three many-objective problems from the water resources engineering domain.</p>
-
-<p><a href="#"><img src="images/pdf.png" class="float-left" width="48" height="48" alt="Download PDF">
-Diagnostic Assessment of Search Controls and Failure Modes in Many-Objective Evolutionary Optimization</a>. Benchmarks the Borg MOEA against a number of MOEAs on a suite of test problems.</p>
-
-<p><a href="#"><img src="images/pdf.png" class="float-left" width="48" height="48" alt="Download PDF">
-Borg: An Auto-Adaptive Many-Objective Evolutionary Computing Framework</a>. The first paper introducing the Borg MOEA. Interested readers should start here to learn about the mechanisms powering the Borg MOEA.</p>
--->
-
<ol>
<li>Woodruff, M. et al. <span class="title">Auto-Adaptive Search Capabilities of the New Borg MOEA: A Detailed Comparison on Product Family Design Problems.</span> 12th AIAA Aviation Technology, Integration, and Operations (ATIO) Conference and 14th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference, Indianapolis, Indiana, 17 September 2012.
<li>Hadka, D. et al. <span class="title">Diagnostic Assessment of the Borg MOEA on Many-Objective Product Family Design Problems.</span> WCCI 2012 World Congress on Computational Intelligence, Congress on Evolutionary Computation, Brisbane, Australia, 10-15 June 2012, pp. 986-995.
@@ -298,13 +283,13 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<h2>Download Citations</h2>
<ul class="link-list">
- <li><a href="#" title="Bibtex Citations">BibTeX</a></li>
- <li><a href="#" title="EndNote Templates">EndNote</a></li>
+ <li><a href="borg.bib" title="Bibtex Citations">BibTeX</a></li>
+ <li><a href="endnote.xml" title="EndNote Citations">EndNote</a></li>
</ul>
<h2>Add Your Publication</h2>
- <p>Let us know if you published a paper using the Borg MOEA to get it included in this list.</p>
+ <p><a href="mailto:admin@borgmoea.org">Tell us</a> about your Borg related publication to get it included in this list.</p>
</aside>
@@ -318,7 +303,7 @@ <h1 id="borg">Borg</h1><h1 id="moea">MOEA</h1>
<!-- footer -->
<footer>
<div class="footer-content">
- <p class="footer-text">Copyright 2011-2012 David Hadka and Patrick Reed. &nbsp;&nbsp;&nbsp; Designed by <a href="http://www.styleshout.com/">Styleshout</a></p>
+ <p class="footer-text">Copyright 2012 David Hadka and Patrick Reed. &nbsp;&nbsp;&nbsp; Designed by <a href="http://www.styleshout.com/">Styleshout</a></p>
</div>
</footer>
View
2  js/init.js
@@ -2,7 +2,7 @@
/* Nivo Slider */
$(window).load(function() {
- $('#slider').nivoSlider({directionNavHide:false});
+ $('#slider').nivoSlider({directionNavHide:false, pauseTime: 10000});
});
View
235 js/jquery.alerts.js
@@ -0,0 +1,235 @@
+// jQuery Alert Dialogs Plugin
+//
+// Version 1.1
+//
+// Cory S.N. LaViska
+// A Beautiful Site (http://abeautifulsite.net/)
+// 14 May 2009
+//
+// Visit http://abeautifulsite.net/notebook/87 for more information
+//
+// Usage:
+// jAlert( message, [title, callback] )
+// jConfirm( message, [title, callback] )
+// jPrompt( message, [value, title, callback] )
+//
+// History:
+//
+// 1.00 - Released (29 December 2008)
+//
+// 1.01 - Fixed bug where unbinding would destroy all resize events
+//
+// License:
+//
+// This plugin is dual-licensed under the GNU General Public License and the MIT License and
+// is copyright 2008 A Beautiful Site, LLC.
+//
+(function($) {
+
+ $.alerts = {
+
+ // These properties can be read/written by accessing $.alerts.propertyName from your scripts at any time
+
+ verticalOffset: -75, // vertical offset of the dialog from center screen, in pixels
+ horizontalOffset: 0, // horizontal offset of the dialog from center screen, in pixels/
+ repositionOnResize: true, // re-centers the dialog on window resize
+ overlayOpacity: .01, // transparency level of overlay
+ overlayColor: '#FFF', // base color of overlay
+ draggable: true, // make the dialogs draggable (requires UI Draggables plugin)
+ okButton: '&nbsp;OK&nbsp;', // text for the OK button
+ cancelButton: '&nbsp;Cancel&nbsp;', // text for the Cancel button
+ dialogClass: null, // if specified, this class will be applied to all dialogs
+
+ // Public methods
+
+ alert: function(message, title, callback) {
+ if( title == null ) title = 'Alert';
+ $.alerts._show(title, message, null, 'alert', function(result) {
+ if( callback ) callback(result);
+ });
+ },
+
+ confirm: function(message, title, callback) {
+ if( title == null ) title = 'Confirm';
+ $.alerts._show(title, message, null, 'confirm', function(result) {
+ if( callback ) callback(result);
+ });
+ },
+
+ prompt: function(message, value, title, callback) {
+ if( title == null ) title = 'Prompt';
+ $.alerts._show(title, message, value, 'prompt', function(result) {
+ if( callback ) callback(result);
+ });
+ },
+
+ // Private methods
+
+ _show: function(title, msg, value, type, callback) {
+
+ $.alerts._hide();
+ $.alerts._overlay('show');
+
+ $("BODY").append(
+ '<div id="popup_container">' +
+ '<h1 id="popup_title"></h1>' +
+ '<div id="popup_content">' +
+ '<div id="popup_message"></div>' +
+ '</div>' +
+ '</div>');
+
+ if( $.alerts.dialogClass ) $("#popup_container").addClass($.alerts.dialogClass);
+
+ // IE6 Fix
+ var pos = ($.browser.msie && parseInt($.browser.version) <= 6 ) ? 'absolute' : 'fixed';
+
+ $("#popup_container").css({
+ position: pos,
+ zIndex: 99999,
+ padding: 0,
+ margin: 0
+ });
+
+ $("#popup_title").text(title);
+ $("#popup_content").addClass(type);
+ $("#popup_message").text(msg);
+ $("#popup_message").html( $("#popup_message").text().replace(/\n/g, '<br />') );
+
+ $("#popup_container").css({
+ minWidth: $("#popup_container").outerWidth(),
+ maxWidth: $("#popup_container").outerWidth()
+ });
+
+ $.alerts._reposition();
+ $.alerts._maintainPosition(true);
+
+ switch( type ) {
+ case 'alert':
+ $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /></div>');
+ $("#popup_ok").click( function() {
+ $.alerts._hide();
+ callback(true);
+ });
+ $("#popup_ok").focus().keypress( function(e) {
+ if( e.keyCode == 13 || e.keyCode == 27 ) $("#popup_ok").trigger('click');
+ });
+ break;
+ case 'confirm':
+ $("#popup_message").after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
+ $("#popup_ok").click( function() {
+ $.alerts._hide();
+ if( callback ) callback(true);
+ });
+ $("#popup_cancel").click( function() {
+ $.alerts._hide();
+ if( callback ) callback(false);
+ });
+ $("#popup_ok").focus();
+ $("#popup_ok, #popup_cancel").keypress( function(e) {
+ if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
+ if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
+ });
+ break;
+ case 'prompt':
+ $("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="' + $.alerts.okButton + '" id="popup_ok" /> <input type="button" value="' + $.alerts.cancelButton + '" id="popup_cancel" /></div>');
+ $("#popup_prompt").width( $("#popup_message").width() );
+ $("#popup_ok").click( function() {
+ var val = $("#popup_prompt").val();
+ $.alerts._hide();
+ if( callback ) callback( val );
+ });
+ $("#popup_cancel").click( function() {
+ $.alerts._hide();
+ if( callback ) callback( null );
+ });
+ $("#popup_prompt, #popup_ok, #popup_cancel").keypress( function(e) {
+ if( e.keyCode == 13 ) $("#popup_ok").trigger('click');
+ if( e.keyCode == 27 ) $("#popup_cancel").trigger('click');
+ });
+ if( value ) $("#popup_prompt").val(value);
+ $("#popup_prompt").focus().select();
+ break;
+ }
+
+ // Make draggable
+ if( $.alerts.draggable ) {
+ try {
+ $("#popup_container").draggable({ handle: $("#popup_title") });
+ $("#popup_title").css({ cursor: 'move' });
+ } catch(e) { /* requires jQuery UI draggables */ }
+ }
+ },
+
+ _hide: function() {
+ $("#popup_container").remove();
+ $.alerts._overlay('hide');
+ $.alerts._maintainPosition(false);
+ },
+
+ _overlay: function(status) {
+ switch( status ) {
+ case 'show':
+ $.alerts._overlay('hide');
+ $("BODY").append('<div id="popup_overlay"></div>');
+ $("#popup_overlay").css({
+ position: 'absolute',
+ zIndex: 99998,
+ top: '0px',
+ left: '0px',
+ width: '100%',
+ height: $(document).height(),
+ background: $.alerts.overlayColor,
+ opacity: $.alerts.overlayOpacity
+ });
+ break;
+ case 'hide':
+ $("#popup_overlay").remove();
+ break;
+ }
+ },
+
+ _reposition: function() {
+ var top = (($(window).height() / 2) - ($("#popup_container").outerHeight() / 2)) + $.alerts.verticalOffset;
+ var left = (($(window).width() / 2) - ($("#popup_container").outerWidth() / 2)) + $.alerts.horizontalOffset;
+ if( top < 0 ) top = 0;
+ if( left < 0 ) left = 0;
+
+ // IE6 fix
+ if( $.browser.msie && parseInt($.browser.version) <= 6 ) top = top + $(window).scrollTop();
+
+ $("#popup_container").css({
+ top: top + 'px',
+ left: left + 'px'
+ });
+ $("#popup_overlay").height( $(document).height() );
+ },
+
+ _maintainPosition: function(status) {
+ if( $.alerts.repositionOnResize ) {
+ switch(status) {
+ case true:
+ $(window).bind('resize', $.alerts._reposition);
+ break;
+ case false:
+ $(window).unbind('resize', $.alerts._reposition);
+ break;
+ }
+ }
+ }
+
+ }
+
+ // Shortuct functions
+ jAlert = function(message, title, callback) {
+ $.alerts.alert(message, title, callback);
+ }
+
+ jConfirm = function(message, title, callback) {
+ $.alerts.confirm(message, title, callback);
+ };
+
+ jPrompt = function(message, value, title, callback) {
+ $.alerts.prompt(message, value, title, callback);
+ };
+
+})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.