Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Sites-Gardeners-Site

198 views

Published on

")if ("" != "" "" != "undefined" "" != null) rows = 3.0;cols = 6.0;cropstoplant = "";gardenname = ...

  • Be the first to comment

  • Be the first to like this

Sites-Gardeners-Site

  1. 1. Sites-Gardeners-Site ") if ("" != "" "" != "undefined" "" != null) rows = 3.0; cols = 6.0; cropstoplant = ""; gardenname = "Your Garden Name"; else loadbedcookie(); $("#siteplaneditor").hide(); $(".sitemaponly").hide(); $(".garbage").droppable( drop: function(event, ui) if (ui.draggable.hasClass("placed")) ui.draggable.remove(); generatecropinfo() ); $.ajax( type: "GET", url: "http://www.gardeners.com/on/demandware.store/Sites-Gardeners-Site/default/Pa- e-GetKGPCrops", dataType: "xml", success: function(xml) $(xml).find("crop").each(function() var name = $(this).find("name").text();
  2. 2. var id = $(this).find("id").text(); var icon = $(this).find("icon").text(); var image = $(this).find("image").text(); var plantedicon = $(this).find("plantedicon").text(); var number = $(this).find("number").text(); var asset = $(this).find("asset").text(); var plantinginfo = $(this).find("plantinginfo").text(); var path = "http://demandware.edgesuite.net/aabf_prd/on/demandware.static/Sites-Gardener- -Site/Sites-Gardeners-Library/default/v1434719819283/Articles/kgp/"; icon = path+icon; plantedicon =path+plantedicon; image = path+image; if (id != null id != "" id != "null") var cropobject = new Object(); cropobject.name = name; cropobject.id = id; cropobject.icon = icon; cropobject.image = image; cropobject.plantedicon = plantedicon; cropobject.number = number; cropobject.asset = asset; cropobject.plantinginfo = plantinginfo; croparray.push(cropobject); $("#cropscroller").append(" "+name+" "); $("#cropscroller li:last").data("cropobject",cropobject); ); var carousel = $("#cropcarousel").jcarousel(); jQuery('.crop-jcarousel-prev').on('jcarouselcontrol:active', function() $(this).removeClass('inactive'); ) .on('jcarouselcontrol:inactive', function() $(this).addClass('inactive');
  3. 3. ).jcarouselControl( target: '-=8' ); jQuery('.crop-jcarousel-next').on('jcarouselcontrol:active', function() $(this).removeClass('inactive'); ) .on('jcarouselcontrol:inactive', function() $(this).addClass('inactive'); ).jcarouselControl( target: '+=8' ); $(".cropicon").draggable( revert: 'invalid', helper: 'clone', appendTo: '#kgpcontainer', zIndex: 6000 );
  4. 4. $("#rows").val(rows); $("#cols").val(cols); gardenname = gardenname.replace("%26", "'"); $("#bednamelink").text(gardenname); redrawbedgrid(); loadcropsintobed(cropstoplant); findPrePlannedGardens() firstload = true; $.ajax( type: "GET", url: "/on/demandware.static/Sites-Gardeners-Site/Sites-Garden- rs-Library/default/Articles/kgp_2011/emptysiteplan.xml", dataType: "xml", success: function(xml) var siteplan = $(xml).find("siteplan"); var name = siteplan.attr('name'); var id = siteplan.attr('id'); var width = siteplan.attr('width'); var height = siteplan.attr('height'); $('#siteplanrows').val(height); $('#siteplancols').val(width); var notes = siteplan.find("notes").text(); var email = siteplan.find("email").text(); var screenname = siteplan.find("screenname").text(); var zip = siteplan.find("zip").text(); var state = siteplan.find("state").text();
  5. 5. redrawgrid(); siteplan.find("bed").each(function() var bedname = $(this).attr("name"); bedname = escape(bedname);//encode(bedname); var bedid = $(this).attr("id"); var bedwidth = $(this).attr("width"); var bedheight = $(this).attr("height"); var bedangle = $(this).attr("angle"); var bednotes = $(this).find("notes").text(); var bedcrops = $(this).find("crops").text(); var bedxpos = $(this).attr("xpos"); var bedypos = $(this).attr("ypos"); var beddata = new Object(); beddata.name = bedname; beddata.id = bedid; beddata.notes = bednotes; beddata.crops = bedcrops; beddata.angle = bedangle; beddata.width = bedwidth; beddata.height = bedheight; beddata.xpos = bedxpos; beddata.ypos = bedypos; bedarray.push(beddata); ); redrawbeds(); setupButtons();
  6. 6. $(".gridsquare").droppable( drop: function(event, ui) ); ); ); ; function encode(text) text = text.replace("'", "'"); text = text.replace("%27", "'"); text = text.replace("%26", ""); return text; Kitchen Garden Planner Other Planning Tools Expert Advice Print My Row or Bed To print your row or bed, please choose whether you'd like to print just the planting map or both the planting map and the crop planting information. Clear This Bed And Start Over? Do you want to clear this bed Vindusvask Oslo and start a new one? All unsaved changes will be lost. Clear This Site Map And Start Over?
  7. 7. Do you want to clear this site map and start a new one? All unsaved changes will be lost. Place a Pre-Planned Garden Choose one of our pre-planned gardens from the list below and click "Place" to add it to your site map. Design Your Row or Bed Design Your Site Map Beds placed on this site map:

×