Compare commits
4 Commits
master
...
Website-Re
| Author | SHA1 | Date | |
|---|---|---|---|
| c36bb1f351 | |||
| cf147b8ffa | |||
| 1edd0cd83c | |||
| d8b158f63b |
1
.gitignore
vendored
@@ -10,3 +10,4 @@ config/db.js
|
||||
# Don't include the .idea folder which is used by the Webstorm IDE
|
||||
.idea/workspace.xml
|
||||
.idea/
|
||||
*.map
|
||||
|
||||
6
.theia/launch.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
"version": "0.2.0",
|
||||
"configurations": []
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#farm-made-fare
|
||||
#canned
|
||||
.mainTextBlock
|
||||
|
||||
.secondaryTextBlock
|
||||
@@ -12,7 +12,7 @@ html, body, #archives ul, #overall-footer, #content ul
|
||||
margin: 0 0 0 0
|
||||
padding: 0 0 0 0
|
||||
body
|
||||
background: #F6F6F6
|
||||
background: #84916E
|
||||
font-family: verdana, arial, helvetica, sans-serif
|
||||
font-size: 1.0em
|
||||
|
||||
@@ -36,17 +36,17 @@ body
|
||||
max-width: 950px
|
||||
min-width: 250px
|
||||
margin: 0 auto
|
||||
#page
|
||||
/*background: url('images/GrassBackground_v1.jpg') repeat
|
||||
background: #F6F6F6*/
|
||||
background: #FDFDFD
|
||||
.page
|
||||
/*background: url('images/GrassBackground_v1.jpg') repeat*/
|
||||
//background: #F6F6F6
|
||||
background: #DDE1D5
|
||||
|
||||
/* Small Devices (phones) */
|
||||
@media(max-width: 549px)
|
||||
#head
|
||||
.head
|
||||
margin: 0 auto
|
||||
/*background: url(images/Header_v2.jpg) no-repeat top center
|
||||
height: 171px*/
|
||||
//background: url(images/Header_v2.jpg) no-repeat top center
|
||||
//height: 171px
|
||||
height: 0
|
||||
#logo
|
||||
position: absolute
|
||||
@@ -61,11 +61,11 @@ body
|
||||
margin: 0 auto
|
||||
padding: 6px 4px
|
||||
position: relative
|
||||
#menuBackground
|
||||
.menuBackground
|
||||
height: 20px
|
||||
max-width: 950px
|
||||
background: #FFF
|
||||
#menu
|
||||
.menu
|
||||
white-space: nowrap
|
||||
position: absolute
|
||||
height: 20px
|
||||
@@ -73,7 +73,7 @@ body
|
||||
font-family: "Open Sans", Arial, Helvetica, sans-serif
|
||||
font-weight: 600
|
||||
font-size: .8em
|
||||
#menu a
|
||||
.menu a
|
||||
margin: 0 0 0 5px
|
||||
text-decoration: none
|
||||
color: black
|
||||
@@ -85,7 +85,7 @@ body
|
||||
-webkit-box-sizing: border-box /* Safari/Chrome, other WebKit */
|
||||
-moz-box-sizing: border-box /* Firefox, other Gecko */
|
||||
box-sizing: border-box /* Opera/IE 8+ */
|
||||
#menu a:hover
|
||||
.menu a:hover
|
||||
opacity: .7
|
||||
color: black
|
||||
border-bottom: 1px solid red
|
||||
@@ -125,19 +125,19 @@ body
|
||||
|
||||
/* Large(r) Devices (tablets and full computers) */
|
||||
@media(min-width: 550px)
|
||||
#head
|
||||
.head
|
||||
margin: 0 auto
|
||||
background: url(images/HeaderTall_v1.jpg) no-repeat top center
|
||||
background: url(images/HeaderTall_v1test.jpg) no-repeat top center
|
||||
background-size: 100%
|
||||
background-position: bottom left
|
||||
max-width: 950px
|
||||
height: 171px
|
||||
#head.tall
|
||||
.head.tall
|
||||
height: 342px
|
||||
#logo
|
||||
position: absolute
|
||||
right: 10px
|
||||
top: 10px
|
||||
left: 10px
|
||||
top: 90px
|
||||
width: 120px
|
||||
height: 120px
|
||||
background: url(images/PetitTetonLogo_v2.png) no-repeat top center
|
||||
@@ -147,21 +147,26 @@ body
|
||||
margin: 0 auto
|
||||
padding: 30px 20px
|
||||
position: relative
|
||||
#menuBackground
|
||||
height: 31px
|
||||
.menuBackground
|
||||
height: 5rem
|
||||
max-width: 950px
|
||||
background: #FFF
|
||||
#menu
|
||||
background: #DDE1D5
|
||||
.menu
|
||||
white-space: nowrap
|
||||
position: absolute
|
||||
height: 30px
|
||||
margin-bottom: 1px
|
||||
height: 2.5rem
|
||||
width: 80%
|
||||
z-index: 200
|
||||
font-family: "Open Sans", Arial, Helvetica, sans-serif
|
||||
font-weight: 600
|
||||
font-size: 1em
|
||||
#menu a
|
||||
margin: 0 0 0 16px
|
||||
font-size: 1.25rem
|
||||
display: flex
|
||||
justify-content: space-between
|
||||
margin-left: 10%
|
||||
.menu a
|
||||
margin: 0 auto
|
||||
margin-top: .325rem
|
||||
white-space: nowrap
|
||||
text-decoration: none
|
||||
color: black
|
||||
line-height: 30px
|
||||
@@ -172,23 +177,23 @@ body
|
||||
-webkit-box-sizing: border-box /* Safari/Chrome, other WebKit */
|
||||
-moz-box-sizing: border-box /* Firefox, other Gecko */
|
||||
box-sizing: border-box /* Opera/IE 8+ */
|
||||
#menu a.holidayMenuItem
|
||||
.menu a.holidayMenuItem
|
||||
font-family: "Grand Hotel", "Open Sans", Arial, Helvetica, sans-serif
|
||||
font-weight: 400
|
||||
font-size: 1.3em
|
||||
letter-spacing: 1px
|
||||
vertical-align: top
|
||||
#menu a.shippingMenuItem
|
||||
.menu a.shippingMenuItem
|
||||
font-family: "Grand Hotel", "Open Sans", Arial, Helvetica, sans-serif
|
||||
font-weight: 400
|
||||
font-size: 1.3em
|
||||
letter-spacing: 1px
|
||||
vertical-align: top
|
||||
#menu a:hover
|
||||
.menu a:hover
|
||||
opacity: 1
|
||||
color: black
|
||||
color: #9E8200
|
||||
background: transparent
|
||||
border-bottom: 3px solid #a20010
|
||||
border-bottom: 3px solid #9E8200
|
||||
#links
|
||||
white-space: nowrap
|
||||
position: absolute
|
||||
@@ -254,7 +259,7 @@ h1
|
||||
/* bar in the middle */
|
||||
//display: table
|
||||
//width: 100%
|
||||
//margin-bottom: 10px
|
||||
//margin-bottom: 10px
|
||||
white-space: nowrap
|
||||
color: black
|
||||
font-family: 'trebuchet ms', verdana, arial, helvetica, sans-serif
|
||||
@@ -268,13 +273,13 @@ h1:after
|
||||
margin-bottom: 10px
|
||||
content: ""
|
||||
display: block
|
||||
/* bar in the middle
|
||||
content: ""
|
||||
display: table-cell
|
||||
width: 100%
|
||||
border-left: 100% solid black
|
||||
background-image: linear-gradient(transparent 47%, #dddddd 48%, #dddddd 52%, transparent 52%)
|
||||
*/
|
||||
// bar in the middle
|
||||
// content: ""
|
||||
// display: table-cell
|
||||
// width: 100%
|
||||
// border-left: 100% solid black
|
||||
// background-image: linear-gradient(transparent 47%, #dddddd 48%, #dddddd 52%, transparent 52%)
|
||||
|
||||
h2
|
||||
display: inline
|
||||
color: #333
|
||||
@@ -309,6 +314,12 @@ li
|
||||
sup, sub
|
||||
line-height: 0.1em
|
||||
|
||||
.pageBorder
|
||||
background-color: blue
|
||||
padding: 40px 10px 10px 10px
|
||||
margin-bottom: 20px
|
||||
margin-top: 10px
|
||||
|
||||
.submenu
|
||||
h2:after
|
||||
border-bottom: 1px solid gray
|
||||
@@ -330,6 +341,7 @@ sup, sub
|
||||
-moz-column-fill: balance
|
||||
column-fill: balance
|
||||
.columnContent
|
||||
height: 15rem
|
||||
text-align: center
|
||||
cursor: pointer
|
||||
margin: 4px 15px 4px 15px
|
||||
@@ -436,17 +448,17 @@ sup, sub
|
||||
//background: url(images/Chicken-Egg.gif) no-repeat center top
|
||||
|
||||
/* Footer Lines */
|
||||
#footer
|
||||
.footer
|
||||
margin-top: 6px
|
||||
color: #666
|
||||
font-family: verdana, arial, helvetica, sans-serif
|
||||
font-size: 0.7em
|
||||
text-align: left
|
||||
#footer a
|
||||
.footer a
|
||||
color: #666
|
||||
font-family: verdana, arial, helvetica, sans-serif
|
||||
text-decoration: none
|
||||
#footer a:hover
|
||||
.footer a:hover
|
||||
color: #00a55d
|
||||
|
||||
#designedBy
|
||||
@@ -539,4 +551,4 @@ sup, sub
|
||||
float: left
|
||||
margin: 4px 10px 10px 0
|
||||
.blogLink
|
||||
color: #e40329 !important
|
||||
//color: #e40329 !important
|
||||
@@ -1,4 +1,4 @@
|
||||
#veggies
|
||||
#produce
|
||||
.produceTable
|
||||
min-width: 200px
|
||||
float: left
|
||||
@@ -1 +1,2 @@
|
||||
#aphome
|
||||
#aphome
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="farm-made-fare" class="page">
|
||||
<h1>FARM-MADE FARE</h1>
|
||||
<div id="canned" class="page">
|
||||
<h1>Canned Goods</h1>
|
||||
<!--<div class="secondaryTextBlock">-->
|
||||
<!--<img class="shipImage" src="images/WeShip_v1.jpg"/>-->
|
||||
<!--<p>We now ship our farm made fare. For those who cannot visit the farm or come to a farmers' market, there is now the option to call <b>707.684.4146</b> or email <a href="mailto:farmer@petitteton.com"><b>farmer@petitteton.com</b></a> with an order. Download the latest product list below, choose what interests you, then let us know. If emailing, include your mailing address and payment preference. We will check availability and give you a total, then you can send a check, call with your credit card number or have us send a PayPal bill to your email address. We will ship as soon as we have payment. -->
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="eggs" class="page">
|
||||
<h1>Chickens & EGGS</h1>
|
||||
<h1>Eggs & Meat</h1>
|
||||
<p><img class="shadow floatLeft" style="width:160px;height:120px;" src="images/Eggs1_v1.jpg" alt="" border="0" align="left"/>
|
||||
The eggs in our cartons look as though they've come from an Easter basket - many shades of brown and green, and different sizes!
|
||||
It's the result of our wide variety of hens, including Rhode Island Red & White, Plymouth Rock, Sexlink, Buff Orpington, Araucana, Barred Rock, Cochin, Maran, and Australorp.
|
||||
|
||||
@@ -1,38 +1,40 @@
|
||||
|
||||
<div id="farm" class="page submenu">
|
||||
<div class="columnContainer">
|
||||
<h1>Farm</h1>
|
||||
<!--<h1>Petit Teton Farm</h1>
|
||||
<-->
|
||||
<div class="columned">
|
||||
<!--<div class="columnContent" onclick="window.location.hash='#!/farm-made-fare'">-->
|
||||
<!--<h2>Now Shipping</h2>-->
|
||||
<!--<img class="shadow" src="images/WeShip_v1.jpg" alt="" border="0" align="left"/>-->
|
||||
<!--<p>We now ship our farm-made fare.</p>-->
|
||||
<!--</div>-->
|
||||
<div class="columnContent" onclick="window.location.hash='#!/land'">
|
||||
<h2>Our Land</h2>
|
||||
<img class="shadow" src="images/Farm_Land_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>The land we own had been a ranch for generations, part of a much larger spread, and was still a small sheep ranch when we bought it in 2004. In 2011 we bought the neighboring property...</p>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/food'">
|
||||
<h2>Food</h2>
|
||||
<img class="shadow" src="images/FoodFMF_v2_CropTest.jpg" alt="" border="0" align="left"/>
|
||||
<p style="text-align: center;"></p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/us'">
|
||||
<h2>About Us</h2>
|
||||
<img class="shadow" src="images/Farm_AboutUs_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>Our jobs on the farm and our backgrounds...</p>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/land'">
|
||||
<h2>Our Story</h2>
|
||||
<img class="shadow" src="images/Farm_Land_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p style="text-align: center;"></p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/markets'">
|
||||
<h2>Markets</h2>
|
||||
<img class="shadow" src="images/Farm_Markets_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>For many years now we've sold our produce at farmers' markets. Currently you'll find us...</p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/aquaponics'">
|
||||
<h2>Aquaponics</h2>
|
||||
<img class="shadow" src="images/Farm_Aquaponics_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>Aquaponics is a system of growing crops and fish in tandem. The water is recycled continuously and the fish...</p>
|
||||
<img class="shadow" src="images/Farmers_Market_1_CropTest.jpg" alt="" border="0" align="left"/>
|
||||
<p style="text-align: center;"></p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/animals'">
|
||||
<h2>Animals</h2>
|
||||
<img class="shadow" src="images/FoodBeef_v1.jpg" alt="" border="0" align="left"/>
|
||||
<h2>Blog</h2>
|
||||
<img class="shadow" src="images/Farm_AboutUs_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>...</p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/us'">
|
||||
<h2>About Us</h2>
|
||||
<img class="shadow" src="images/Visit4_v1_CropTest.jpg" alt="" border="0" align="left"/>
|
||||
<p style="text-align: center;"></pstyle></p>
|
||||
</div>
|
||||
|
||||
<!--<div class="columnContent" onclick="window.location.hash='#!/visiting'">-->
|
||||
<!--<h2>Contact & Visit</h2>-->
|
||||
<!--<img class="shadow" src="images/Driveway2_v2.jpg" alt="" border="0" align="left"/>-->
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<div id="food" class="page submenu">
|
||||
<div class="columnContainer">
|
||||
<h1>Food</h1>
|
||||
<div class="columned">
|
||||
<div class="columnContent" onclick="window.location.hash='#!/farm-made-fare'">
|
||||
<h2>Farm-Made Fare</h2>
|
||||
<div class="columned">
|
||||
<div class="columnContent" onclick="window.location.hash='#!/canned'">
|
||||
<h2>Canned Goods</h2>
|
||||
<img class="shadow" src="images/FoodFMF_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>Check out what we are cooking in the kitchen!</p>
|
||||
</div>
|
||||
<div class="columnContent" onclick="window.location.hash='#!/eggs'">
|
||||
<h2>Meat & Eggs</h2>
|
||||
<h2>Eggs & Meat</h2>
|
||||
<img class="shadow" src="images/FoodEggs_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>Eggs from our truly free range chickens are provided in a colorful array and sold by the dozen.</p>
|
||||
</div>
|
||||
@@ -32,7 +32,7 @@
|
||||
<!--<img class="shadow" src="images/FoodChicken_v1.jpg" alt="" border="0" align="left"/>-->
|
||||
<!--<p>We have over 100 laying hens spread across several areas of the farm, and we sell the spent laying hens as organic fed chicken.</p>-->
|
||||
<!--</div>-->
|
||||
<div class="columnContent" onclick="window.location.hash='#!/veggies'">
|
||||
<div class="columnContent" onclick="window.location.hash='#!/produce'">
|
||||
<h2>Produce</h2>
|
||||
<img class="shadow" src="images/FoodVeggies_v1.jpg" alt="" border="0" align="left"/>
|
||||
<p>We grow and sell a very wide variety of freshly picked produce.</p>
|
||||
|
||||
BIN
public/images/Farmers_Market_1_CropTest.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
public/images/FoodFMF_v2.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
public/images/FoodFMF_v2_CropTest.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 219 KiB After Width: | Height: | Size: 417 KiB |
BIN
public/images/HeaderTall_v1test.jpg
Normal file
|
After Width: | Height: | Size: 440 KiB |
BIN
public/images/Visit4_v1_CropTest.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
@@ -12,9 +12,9 @@
|
||||
<meta name="revisit-after" content="12 days"/>
|
||||
<meta name="robots" content="index, follow"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
|
||||
<title>Petit Teton Farm</title>
|
||||
|
||||
|
||||
<link rel="shortcut icon" href="images/Chicken.ico"/>
|
||||
<link rel="stylesheet" href="main.css" type="text/css"/>
|
||||
<script type="text/javascript" language="JavaScript" src="js/jquery-1.12.4.min.js"></script>
|
||||
@@ -25,42 +25,37 @@
|
||||
<script type="text/javascript" language="JavaScript" src="js/jquery.cycle2.min.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="js/jquery.shadow.js"></script>
|
||||
<script type="text/javascript" language="JavaScript" src="js/scroller.js"></script>
|
||||
<!--<script type="text/javascript" language="JavaScript" src="js/framework.js"></script>-->
|
||||
<script type="text/javascript" language="JavaScript" src="js/main.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="overall">
|
||||
<div id="page">
|
||||
<div id="menu"><!-- Note: Comment out spacing between the elements since the browser will interpret the spaces as characters to be displayed.
|
||||
--><a href="#!/farm">Farm</a><!--
|
||||
--><a href="#!/food">Food</a><!--
|
||||
--<a href="#!/animals">Animals</a><!--
|
||||
--<a href="#!/services">Services</a><!--
|
||||
--><a href="#!/visiting">Contact / Visit</a><!--
|
||||
--><a class="blogLink" style="display: none" target="_blank" href="//blog.petitteton.com">Blog</a><!--
|
||||
--><!--<a href="#!/holidays" class="holidayMenuItem">Holidays</a>--><!--
|
||||
--><!--<a href="#!/shipping" class="shippingMenuItem">Shipping</a>--><!--
|
||||
--></div>
|
||||
<!-- <div id="links">-->
|
||||
<!-- <!– Note: Comment out spacing between the elements since the browser will interpret the spaces as characters to be displayed. –>-->
|
||||
<!--<!– <a id="linkFacebook" href="http://www.facebook.com/pages/Petit-Teton-Farm/229690830390080?sk=wall#" target='_blank' rel="nofollow"></a><!––>-->
|
||||
<!--<!– –><a id="linkGoogle" href="https://plus.google.com/104893482629844050636/about" target='_blank' rel="nofollow"></a><!––>-->
|
||||
<!--<!– –><a id="linkTwitter" style="display: none" href="https://twitter.com/PetitTeton" target='_blank' rel="nofollow"></a>–>-->
|
||||
<!-- </div>-->
|
||||
<div id="menuBackground"></div>
|
||||
<div id="head">
|
||||
<div id="logo" onclick="window.location.hash='#!/grow-and-can'"></div>
|
||||
</div>
|
||||
<div id="content" bs-view="main-view">
|
||||
<!--CONTENT:main-->
|
||||
<div class="pageBorder">
|
||||
<div class="page">
|
||||
<div class="menu"><!-- Note: Comment out spacing between the elements since the browser will interpret the spaces as characters to be displayed.
|
||||
--><a href="#!/farm">Home</a><!--
|
||||
--><a href="#!/food">Food</a><!--
|
||||
--><a href="#!/markets">Markets</a><!--
|
||||
--><a href="#!/us">About Us</a><!--
|
||||
--><a class="blogLink" style="display: inline" target="_blank" href="//blog.petitteton.com">Blog</a><!--
|
||||
--></div>
|
||||
<div class="menuBackground"></div>
|
||||
<div class="head">
|
||||
<div id="logo" onclick="window.location.hash='#!/farm'"></div>
|
||||
</div>
|
||||
<div id="content" bs-view="main-view">
|
||||
<!--CONTENT:main-->
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p style="text-align: center;"><strong>Petit Teton Farm</strong>
|
||||
<br>18501 Hwy 128, Yorkville, CA 95494
|
||||
<br>707-123-4567
|
||||
<br><a href="mailto:farmer@petitteton.com">farmer@petitteton.com</a>
|
||||
</p></div>
|
||||
<!-- footer lines -->
|
||||
<div class="footer">© 2009,2023 Petit Teton LLC | Farm Email <a href="mailto:farmer@petitteton.com">farmer@petitteton.com</a></div>
|
||||
</div>
|
||||
<!-- footer lines -->
|
||||
<div id="footer">© 2009,2023 Petit Teton LLC | Farm Email <a href="mailto:farmer@petitteton.com">farmer@petitteton.com</a></div>
|
||||
<!-- <div id="designedBy" style="">-->
|
||||
<!-- Web Site By: <a href="http://de22.com" style="font-weight: normal" target="_blank">Declarative Engineering LLC</a>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -1,52 +1,75 @@
|
||||
var slideShowIndex = 0;
|
||||
var slideShowSlides = []; //An array of arrays - each sub-array contains the image path, title, description, width, and height.//
|
||||
var scrollerScrollTime = 3500;
|
||||
var scrollerInitialDelay = 5000;
|
||||
var scrollerTransitionTime = 1000;
|
||||
let slideShowIndex = 0;
|
||||
let slideShowSlides = []; //An array of arrays - each sub-array contains the image path, title, description, width, and height.//
|
||||
let scrollerScrollTime = 3500;
|
||||
let scrollerInitialDelay = 5000;
|
||||
let scrollerTransitionTime = 1000;
|
||||
|
||||
window.status="";
|
||||
|
||||
//Handle the document ready event which is where any initialization code goes.
|
||||
$(document).ready(function($) {
|
||||
var contentDiv = $('#content');
|
||||
//var viewName = "main-view";
|
||||
//var view = $('[bs-view="' + viewName + '"]');
|
||||
let contentDiv = $('#content');
|
||||
//let viewName = "main-view";
|
||||
//let view = $('[bs-view="' + viewName + '"]');
|
||||
//if(!view || view.length != 1) {
|
||||
// throw "View with name: '" + viewName + "' not found";
|
||||
//}
|
||||
//var layoutManager = new LayoutManager("main-view");
|
||||
var layoutManager = new LayoutManager(contentDiv);
|
||||
|
||||
//let layoutManager = new LayoutManager("main-view");
|
||||
let layoutManager = new LayoutManager(contentDiv);
|
||||
|
||||
//layoutManager.defaultUrl = '!/holidays';
|
||||
layoutManager.defaultUrl = '!/home';
|
||||
layoutManager.pageClassFades = [
|
||||
{cls: 'full', fadeIn: null, fadeOut: null}
|
||||
];
|
||||
layoutManager.viewMetadataDefaults = {classes: 'full'};
|
||||
// layoutManager.viewMetadata = {
|
||||
// weddings: {
|
||||
// load: "element.data('scroller', new ItemScroller($('div.scrollViewport'), 142, scrollerScrollTime, scrollerInitialDelay, scrollerTransitionTime, false));",
|
||||
// unload:"element.data('scroller').release(); element.data('scroller', undefined);"
|
||||
// },
|
||||
// home: {
|
||||
// load: "$('#head').addClass('tall')",
|
||||
// unload: "$('#head').removeClass('tall')"
|
||||
// //load: "$('#head, #links').css({display: 'none'})",
|
||||
// //unload: "$('#head, #links').css({display: 'block'})"
|
||||
// }
|
||||
// };
|
||||
|
||||
layoutManager.viewMetadata = {
|
||||
weddings: {
|
||||
load: "element.data('scroller', new ItemScroller($('div.scrollViewport'), 142, scrollerScrollTime, scrollerInitialDelay, scrollerTransitionTime, false));",
|
||||
unload:"element.data('scroller').release(); element.data('scroller', undefined);"
|
||||
},
|
||||
home: {
|
||||
load: "$('#head').addClass('tall')",
|
||||
unload: "$('#head').removeClass('tall')"
|
||||
//load: "$('#head, #links').css({display: 'none'})",
|
||||
//unload: "$('#head, #links').css({display: 'block'})"
|
||||
}
|
||||
// home: {
|
||||
// load: "$('#head').addClass('tall');",
|
||||
// unload: "$('#head').removeClass('tall')"
|
||||
// },
|
||||
// farm: {
|
||||
// load: "$('#submenu-home').removeClass('hidden')",
|
||||
// unload: "$('#submenu-home').addClass('hidden')"
|
||||
// },
|
||||
// food: {
|
||||
// load: "$('#submenu-food').removeClass('hidden')",
|
||||
// unload: "$('#submenu-food').addClass('hidden')"
|
||||
// },
|
||||
// canned: {
|
||||
// load: "$('#submenu-food').removeClass('hidden')",
|
||||
// unload: "$('#submenu-food').addClass('hidden')"
|
||||
// },
|
||||
// produce: {
|
||||
// load: "$('#submenu-food').removeClass('hidden')",
|
||||
// unload: "$('#submenu-food').addClass('hidden')"
|
||||
// }
|
||||
};
|
||||
|
||||
|
||||
//Associate a function with the history jquery addon that will load the url content after the history is updated.
|
||||
$.history.init(function(url) {
|
||||
if(!url || url.length == 0) {
|
||||
url = layoutManager.defaultUrl;
|
||||
}
|
||||
|
||||
|
||||
layoutManager.show(url);
|
||||
});
|
||||
/*
|
||||
var websocket = new WebSocket('ws://petitteton.com/');
|
||||
|
||||
let websocket = new WebSocket('ws://petitteton.com/');
|
||||
|
||||
websocket.onopen = function() {
|
||||
websocket.ping();
|
||||
};
|
||||
@@ -57,4 +80,4 @@ $(document).ready(function($) {
|
||||
console.log('Server: ' + message);
|
||||
};
|
||||
*/
|
||||
});
|
||||
});
|
||||
|
||||
27
public/main.sass
Normal file
@@ -0,0 +1,27 @@
|
||||
@use 'index'
|
||||
|
||||
@use "clearfix"
|
||||
@use "home"
|
||||
@use "farm"
|
||||
@use "food"
|
||||
@use "animals"
|
||||
@use "services"
|
||||
@use "holidays"
|
||||
@use "produce"
|
||||
@use "grow-and-can"
|
||||
@use "eggs"
|
||||
@use "beef"
|
||||
@use "pigs"
|
||||
@use "chicken"
|
||||
@use "markets"
|
||||
@use "slideshow"
|
||||
@use "visiting"
|
||||
@use "weddings"
|
||||
@use "community"
|
||||
@use "yaks"
|
||||
@use "us"
|
||||
@use "canned"
|
||||
@use "aquaponics"
|
||||
@use "shipping"
|
||||
@use "ap/aphome"
|
||||
@use "ap/airlift"
|
||||
@@ -1,28 +0,0 @@
|
||||
@use 'basic';
|
||||
|
||||
@use "clearfix";
|
||||
@use "home";
|
||||
@use "farm";
|
||||
@use "food";
|
||||
@use "animals";
|
||||
@use "services";
|
||||
@use "holidays";
|
||||
@use "farm-made-fare";
|
||||
@use "grow-and-can";
|
||||
@use "eggs";
|
||||
@use "beef";
|
||||
@use "pigs";
|
||||
@use "chicken";
|
||||
@use "markets";
|
||||
@use "slideshow";
|
||||
@use "visiting";
|
||||
@use "weddings";
|
||||
@use "yaks";
|
||||
@use "community";
|
||||
@use "yaks";
|
||||
@use "us";
|
||||
@use "veggies";
|
||||
@use "aquaponics";
|
||||
@use "shipping";
|
||||
@use "ap/aphome";
|
||||
@use "ap/airlift";
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="veggies" class="page">
|
||||
<div id="produce" class="page">
|
||||
<h1>PRODUCE</h1>
|
||||
<p>We grow a cornucopia of fruits and vegetables at <b>Petit Teton</b>. Below is a listing of the things we have grown over the years. We do not use chemicals, and we use organic seed where possible (never GMO). To bring the best quality product to you, we practice biodiversity, make our own compost from crop and animal waste, and rotate crops. We grow our crops a lot like family farms 100 years ago did, before corporations took over the business of farming.</p>
|
||||
<span class="produceTable">
|
||||