SlideShare una empresa de Scribd logo
1 de 7
Descargar para leer sin conexión
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();
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');
).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
);
$("#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();
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();
$(".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?
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:

Más contenido relacionado

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Sites-Gardeners-Site

  • 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. 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. ).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. $("#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. 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. $(".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. 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: