1"use strict"; 2$(document).ready(function() { 3 $('.empty-collection .link-here a').click(function (e) { 4 e.preventDefault(); 5 6 $('.empty-collection.js-hover-div.active').removeClass('active'); 7 }); 8 9 $(document).on('click', '.close-btn', function () { 10 $('.form-success.active').remove(); 11 $('.overlay').fadeOut(); 12 }); 13 14 $('.site-header__cart--toggle').click(function (e) { 15 e.preventDefault(); 16 $('.cart-ajax').show(); 17 }); 18 19 $('.cart-ajax__close').click(function (e) { 20 e.preventDefault(); 21 $('.cart-ajax').hide(); 22 }); 23 24 $('#blog-header-search').click(function (e) { 25 e.preventDefault(); 26 27 if ($('.blog-header__search').hasClass('active')) { 28 $('.blog-header__search').removeClass('active'); 29 } else { 30 $('.blog-header__search').addClass('active'); 31 $('.blog-header__search input').focus(); 32 } 33 34 }); 35 36 function nodeToString(n) { 37 var ret = '{\n'; 38 39 for (var i in n) { 40 ret += '\t' + i + ' -> ' + n[i] + '\n'; 41 } 42 43 return ret + '}'; 44 } 45 46 // $('iframe').each(function () { 47 // if ($(this).attr('src').includes('youtube')) { 48 // let iframe = $(this); 49 // iframe.removeAttr('width'); 50 // iframe.removeAttr('height'); 51 52 // let newHtml = '<div class="video"><div class="video__inner">' + iframe[0].outerHTML + '</div></div>'; 53 54 // $(this).after(newHtml); 55 // $(this).remove(); 56 // } 57 // }); 58 59 var menu = $('.main-menu'); 60 var menuWrapper = $('.header-menu-wrapper'); 61 var menuHeight = $('.main-menu').height(); 62 var mobileMenu = $('.mobile-main-menu'); 63 var mobileMenuWrapper = $('.mobile-main-wrapper'); 64 var mobileMenuHeight = $('.main').height(); 65 66 67 var mobileFilterWrapper = $('.mobile-filter-wrapper'); 68 var mobileFilter = $('.mobile-filter'); 69 var mobileFilterHeight = $('.mobile-filter').height(); 70 71 menuWrapper.css('height', menuHeight + 'px'); 72 73 if ($(window).width() <= 1149) { 74 mobileFilterWrapper.css('height', mobileFilterHeight + 'px'); 75 } 76// mobileMenuWrapper.css('height', mobileMenuHeight + 'px'); 77 78 if ($(window).width() > 1149) { 79 $('.sidebar-sticky-wrapper__inner').css('top', (menuHeight + 15) + 'px'); 80 } 81 //new 82 // if ($(window).width() > 800) { 83 // $('.facet-list_flex-container').css('top', (menuHeight + 15) + 'px'); 84 // $('.facet-list_flex-container').css('max-height', (document.documentElement.clientHeight - menuHeight - 50) + 'px'); 85 // $('.facet-list_flex-container').css('overflow-y', 'scroll'); 86 // } 87 // else { 88 // $('.custom-filter_left-panel').css('top', (menuHeight) + 'px'); 89 // $('.facet-list_flex-container').css('max-height', 'auto'); 90 // $('.facet-list_flex-container').css('overflow', 'unset'); 91 // } 92 customFilterResize() 93 94 95 setInterval(function () { 96 if ($(window).width() > 1149) { 97 $('.sidebar-content').css('height', $('#collection').height() + 'px'); 98 } else { 99 $('.sidebar-content').css('height', 'auto'); 100 } 101 }, 100); 102 103 $(window).resize(function () { 104 menuHeight = $('.main-menu').height(); 105 // console.log("menuHeight", menuHeight) 106 menuWrapper.css('height', menuHeight + 'px'); 107 //new 108 109 if ($(window).width() <= 1149) { 110 mobileFilterWrapper.css('height', mobileFilterHeight + 'px'); 111 } 112 113 mobileMenuHeight = $('.main').height(); 114 mobileMenuWrapper.css('height', mobileMenuHeight + 'px'); 115 116 if ($(window).width() > 640) { 117 $('.sidebar-sticky-wrapper__inner').css('top', (menuHeight + 15) + 'px'); 118 } else { 119 $('.sidebar-sticky-wrapper__inner').css('top', 'auto'); 120 } 121 customFilterResize() 122 }); 123 124 //new - customFilterResize 125 126 function customFilterResize() { 127 menuHeight = $('.main-menu').height(); 128 129 if ($(window).width() > 800) { 130 $('.facet-list_flex-container').css('top', (menuHeight + 15) + 'px'); 131 $('.facet-list_flex-container').css('max-height', (document.documentElement.clientHeight - menuHeight - 50) + 'px'); 132 $('.facet-list_flex-container').css('overflow-y', 'scroll'); 133 } 134 else { 135 $('.custom-filter_left-panel').css('top', (menuHeight) + 'px'); 136 $('.facet-list_flex-container').css('max-height', 'auto'); 137 $('.facet-list_flex-container').css('overflow', 'unset'); 138 } 139 } 140 141 $(window).scroll(function () { 142 if ($(window).scrollTop() >= menuWrapper.offset().top) { 143 menu.css({ 144 background: '#fff', 145 position: 'fixed', 146 top: 0, 147 left: 0, 148 right: 0, 149 zIndex: 10, 150 }); 151 } else { 152 menu.css({ 153 position: 'static', 154 top: 'auto', 155 left: 'auto', 156 right: 'auto', 157 }); 158 } 159 160 if ($(window).width() <= 1149) { 161 if ($(window).scrollTop() >= (mobileFilterWrapper.offset()?.top - menuHeight)) { 162 mobileFilter.css({ 163 background: '#fff', 164 position: 'fixed', 165 top: menuHeight + 'px', 166 left: 0, 167 right: 0, 168 zIndex: 10, 169 }); 170 } else { 171 mobileFilter.css({ 172 position: 'static', 173 top: 'auto', 174 left: 'auto', 175 right: 'auto', 176 }); 177 } 178 } 179 180 if ($(window).scrollTop() >= mobileMenuWrapper.offset().top) { 181 mobileMenu.css({ 182 background: '#fff', 183 position: 'fixed', 184 top: 0, 185 left: 0, 186 right: 0, 187 zIndex: 9, 188 }); 189 } else { 190 mobileMenu.css({ 191 position: 'static', 192 top: 'auto', 193 left: 'auto', 194 right: 'auto', 195 }); 196 } 197 }); 198 199 $('.mobile-filter-title').click(function () { 200 $('.sidebar-content').toggle(); 201 202 mobileFilterHeight = $('.mobile-filter').height(); 203 204 if ($(window).width() <= 1149) { 205 mobileFilterWrapper.css('height', mobileFilterHeight + 'px'); 206 } 207 }); 208 209 $('.open-overlay').click(function () {
210 var overlay = $(this).data('overlay'); 211 console.log("button clicked") 212 $('#' + overlay).fadeIn(); 213 }); 214 215 $('.overlay__close img').click(function () { 216 $('.overlay').fadeOut(); 217 }); 218 219 $(document).on('click', '.sidebar-item', function () { 220// if ($(window).scrollTop() > 600) { 221 222 mobileFilterHeight = $('.mobile-filter').height(); 223 224 if ($(window).width() <= 1149) { 225 mobileFilterWrapper.css('height', mobileFilterHeight + 'px'); 226 $(window).scrollTop(280); 227 } else { 228 $(window).scrollTop($('#collection').offset().top - 200); 229 } 230// } 231 }); 232 233 234 var e = new concrete.Sections; 235 e.register("product", concrete.Product), e.register("collection", concrete.Collection), $(".dropdown-item").each(function() { 236 $(this).hasClass("active") && $(this).closest(".secondary-item, .mobile-item").removeClass("inactive").addClass("active") 237 }), $(".secondary-item, .mobile-item").each(function() { 238 if ($(this).hasClass("active")) { 239 var e = $(this).parent().data("main-title"); 240 $(this).parent().removeClass("inactive").addClass("active"), $('.main-menu .item[data-main-title="' + e + '"]').removeClass("inactive").addClass("active") 241 } 242 }), $(".length-price .quantity").each(function() { 243 var e = $(this).data("value") / 1; 244 e <= 1 ? $(this).prepend("Length: " + e + " yard") : $(this).prepend("Length: " + e + " yards") 245 }), $(".cart__qty-input").each(function() { 246 var e = $(this).val(); 247 $(this).next().val(e / 1) 248 }), $(".dummy-quantity").change(function() { 249 var e = $(this).val(); 250 $(this).val(Math.round(1 * e) / 1), $(this).prev().val(1 * e) 251 }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && $(".item-dropdown .secondary-item-link").on("click", function(e) { 252 e.preventDefault() 253 }), $("#mb-actions .search").on("click", function() { 254 $(".search-bar").slideToggle() 255 }), $(".mb-search-close").on("click", function() { 256 $(".search-bar").slideToggle() 257 }), $(".mb-search-action").on("click", function() { 258 $(".search-bar").find("form").submit() 259 }), $(".mb-item-dropdown .mb-item-link").on("click", function(e) { 260 e.preventDefault(), $(this).next(".dropdown-window").slideToggle() 261 }), $(".mb-item-dropdown .mb-item-link").on("click", function(e) { 262 e.preventDefault(), $(this).next(".dropdown-window-ds").slideToggle() 263 }), $(".hamburguer").on("click", function() { 264 $(".mobile-menu").toggleClass("active") 265 }); 266 var t, n, a; 267 268 function o(e) { 269 var t = e.innerHTML; 270 e.setAttribute("data-originalText", t), e.innerHTML = t.substr(0, 360) + "...", e.classList.add("truncated"); 271 var n = document.createElement("span"); 272 n.classList.add("span-read-more"), n.innerHTML = "Read More", e.appendChild(n) 273 } 274 275 function r(e) { 276 e.html(e.attr("data-originalText")), $(".span-read-less").html(""), e.append('<span class="span-read-less">Read less</span>') 277 } 278 if (0 < document.querySelectorAll(".truncate").length) { 279 var c; 280 if (0 < document.querySelectorAll(".empty-collection .lead h6").length) { 281 c = document.querySelector(".empty-collection .lead h6").innerHTML; 282 var i = document.querySelector(".empty-collection .link-here").getAttribute("data-collection"), 283 l = document.createElement("a"); 284 l.href = c, l.setAttribute("target", "_blank"), l.innerHTML = "Visit " + i + " Website", document.querySelector(".empty-collection .link-here").appendChild(l) 285 } 286 o(document.querySelector(".truncate")) 287 } 288 if ($(".description").on("click", function() { 289 $(".truncate").hasClass("truncated") ? ($(this).find("i").removeClass("fa-chevron-down").addClass("fa-chevron-up"), $(".truncate").removeClass("truncated"), r($(".truncate"))) : ($(".truncate").addClass("truncated"), $(this).find("i").removeClass("fa-chevron-up").addClass("fa-chevron-down"), o(document.querySelector(".truncate"))) 290 }), $(".empty-collection .lead.two").on("click", function() { 291 $(this).hasClass("truncated") ? ($(this).removeClass("truncated"), r($(this))) : ($(this).addClass("truncated"), o(this)) 292 }), $(".accordion .main").on("click", function() { 293 $(this).toggleClass("pane-open"), $(this).find(".icon").find("i").toggleClass("fa-chevron-down fa-chevron-up"), $(this).next(".pane").toggleClass("pane-open") 294 }), $(".accordion .title").on("click", function() { 295 $(this).next(".pane").slideToggle(), $(this).find("i").toggleClass("fa-chevron-down fa-chevron-up") 296 }), $(".tab-item").on("click", function() { 297 var e = $(this).index(), 298 t = $(this).parents(".tab-navigation").data("tabgroup"), 299 n = $('.tab-panels[data-tabgroup="' + t + '"]'), 300 a = $('.tab-navigation[data-tabgroup="' + t + '"]'); 301 $(".tab-item", a).removeClass("active"), $(this).addClass("active"), $(" > .tab-panel", n).removeClass("active"), $(".tab-panel:eq(" + e + ")", n).addClass("active") 302 }), 0 < $(".designer-brands").length) { 303 var s = function() { 304 return 1 < document.URL.split("#").length ? document.URL.split("#")[1] : null 305 }; 306 window.location.href; 307 if (null != s()) { 308 var u = s(), 309 d = document.querySelector('.tab-item[href="#' + u + '"]'); 310 t = d, n = "click", "createEvent" in document ? ((a = document.createEvent("HTMLEvents")).initEvent(n, !1, !0), t.dispatchEvent(a)) : ((a = document.createEventObject()).eventType = n, t.fireEvent("on" + a.eventType, a)) 311 } 312 } 313 if ($("#add-more-action").on("click", function() { 314 $(this).closest("#contact_form").find(".formClone:first").clone().insertAfter($(".formClone:last")), 1 < $(".formClone").length && $(".remove").show(), $(".remove").on("click", function() { 315 1 < $(".formClone").length ? $(this).parent().remove() : $(this).hide() 316 }) 317 }), $(".window-categories .block").on("click touch", function() { 318 var e = $(this).hasClass("js-open"), 319 t = $(this).data("category"), 320 n = $('.pane[data-category="' + t + '"]'), 321 a = n.outerHeight(), 322 o = $(".window-categories .block"), 323 r = $(".pane"), 324 c = { 325 duration: 500 326 }, 327 i = { 328 opacity: 1, 329 visibility: "visible", 330 height: a 331 }, 332 l = { 333 opacity: 0, 334 visibility: "hidden", 335 height: "auto" 336 }; 337 !1 === e ? (o.velocity({ 338 marginBottom: 0 339 }, c), o.removeClass("js-open"), r.velocity(l, c), $(this).addClass("js-open"), $(this).velocity({ 340 marginBottom: a 341 }, c), n.velocity(i, c)) : ($(this).removeClass("js-open"), $(this).velocity({ 342 marginBottom: 0 343 }, c), n.velocity(l, c)) 344 }), $(".window-categories .close-action").on("click touch", function() { 345 var e = $(this).parents(".pane"), 346 t = e.data("category"), 347 n = $('.window-categories .block[data-category="' + t + '"]'), 348 a = { 349 duration: 500 350 }; 351 $(".window-categories .block").removeClass("js-open"), n.velocity({ 352 marginBottom: 0 353 }, a), e.velocity({ 354 opacity: 0, 355 visibility: "hidden", 356 height: 0 357 }, a) 358 }), 0 < $(".window-categories").length) { 359 var m = localStorage.getItem("callback"); 360 null != m && $('.window-categories .block[data-category="' + m + '"]').trigger("click") 361 } 362}); 363var myRedirect = function(e, t, n) { 364 var a = $('<form action="' + e + '" method="post"><input type="hidden" name="' + t + '" value="' + n + '"></input></form>'); 365 $("body").append(a), $(a).submit() 366}; 367 368function price_quote_request(e) { 369 var t = $("span.cart-qty").html(); 370 return e.stopImmediatePropagation(), myRedirect("https://forms.fabricsandhome.com/price-quote-request/", "bag-count", t), !1 371} 372 373function place_order(e) { 374 var t = $("span.cart-qty").html(); 375 return e.stopImmediatePropagation(), myRedirect("https://forms.fabricsandhome.com/place-order/", "bag-count", t), !1 376} 377 378function getRandomIntInclusive(e, t) {
379 return e = Math.ceil(e), t = Math.floor(t), Math.floor(Math.random() * (t - e + 1)) + e 380} 381$(document).ready(function() {}); 382var randoNum = getRandomIntInclusive(1, 1e5), 383 toolkit = { 384 removeDuplicates: function(e) { 385 for (var t = [], n = e.length, a = 0; a < n; a++) - 1 == t.indexOf(e[a]) && t.push(e[a]); 386 return t 387 }, 388 insertAfter: function(e, t) { 389 t.parentNode.insertBefore(e, t.nextSibling) 390 }, 391 insertBefore: function(e, t) { 392 t.parentNode.insertBefore(e, t) 393 }, 394 eventFire: function(e, t) { 395 if (e.fireEvent) e.fireEvent("on" + t); 396 else { 397 var n = document.createEvent("Events"); 398 n.initEvent(t, !0, !1), e.dispatchEvent(n) 399 } 400 }, 401 flatten: function(t) { 402 function e(e) { 403 return t.apply(this, arguments) 404 } 405 return e.toString = function() { 406 return t.toString() 407 }, e 408 }(function(e) { 409 return e.reduce(function(e, t) { 410 return e.concat(Array.isArray(t) ? flatten(t) : t) 411 }, []) 412 }), 413 aContainsB: function(e, t) { 414 return 0 <= e.indexOf(t) 415 }, 416 aMissingB: function(e, t) { 417 return -1 == e.indexOf(t) 418 }, 419 currentFilterState: function() { 420 var e = document.URL.indexOf("?"), 421 t = (document.URL.indexOf("/"), document.URL.substring(e + 1), document.URL.substring(document.URL.lastIndexOf("/") + 1)); 422 if (t) 423 for (var n = t.split("+"), a = n.length, o = 0; o < a; o++) { 424 var r = n[o], 425 c = r.indexOf("brand"), 426 i = r.indexOf("menu-content"), 427 l = r.indexOf("menu-color"), 428 s = r.indexOf("menu-style"), 429 u = r.indexOf("suggested-use"); 430 console.log(r), (-1 < c || -1 < i || -1 < l || -1 < s || -1 < u) && document.querySelector('.filter-tags[data-tag="' + r + '"]').classList.add("active-tag") 431 } 432 }, 433 getPreviousSibling: function(e, t) { 434 var n = e.previousElementSibling; 435 if (!t) return n; 436 for (; n;) { 437 if (n.matches(t)) return n; 438 n = n.previousElementSibling 439 } 440 } 441 }; 442document.addEventListener("DOMContentLoaded", function() { 443 function m(e, t, n, a, o) { 444 Email.send({ 445 Host: "smtp.sendgrid.net", 446 Username: "apikey", 447 Password: "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", 448 To: e, 449 From: "[email protected]", 450 Subject: "Price Quote Request", 451 Body: '\n <div class="img-container" style="display:block; width: 50%;">\n <img src="https://cdn.shopify.com/s/files/1/2470/6270/files/Screen_Shot_2019-02-15_at_12.07.16_PM.png?5840171280651837286" style="width: 100%;">\n </div>\n <p style="color:#808080;">Thank you for your request. <br> Most price quotes will be answered within 24 hours, Monday through Friday.</p>\n <p style="color:#808080;">\n For over 60 years, Fabrics and Home have been New York Cityâs largest suppliers of\n designer home decorative fabrics, wallcovering, trim, drapery hardware, furniture and\n accessories. We are comprised of a team of design professionals who collaborate on\n all projects in both residential and commercial spaces. Our goal is to complete each\n clientâs unique decorating project with our exquisite combinations of fabrics and\n wallcovering and the finest-made quality custom window treatments, luxury bedding and\n decorative pillows. We are the ideal âInsider sourceâ for the savvy shopper who loves\n high end interior design without high-cost designer fees.\n </p>\n <p style="color:#808080;">We welcome the opportunity to work together with you.</p>\n <br>\n <p style="color:#808080;">\n Price Quote ID <br>\n ID: '.concat(t, " <br>\n Email: ").concat(e, " <br>\n Brand Name: ").concat(n, " <br>\n Pattern Name or #: ").concat(a, " <br>\n Color Name or #: ").concat(o, ' <br>\n </p>\n <p style="color:#808080;">
451\n Thank you, <br>\n The Team at Fabrics and Home <br>\n www.fabricsandhome.com <br>\n 800-582-2624 <br>\n </p>\n <br>\n <p style="color: #808080; font-size: 8px;">Proud members of the Better Business Bureau for 30 YEARS</p>\n ') 452 }).then(function(e) { 453 console.log(e) 454 }) 455 } 456 if (0 < document.querySelectorAll(".algolia-test").length) { 457 document.querySelector(".search-page .send-action button").addEventListener("click", function(e) { 458 e.preventDefault(); 459 var t = e.target.closest(".no-search-results"), 460 n = e.target.form, 461 a = n.querySelector('input[type="email"]').value, 462 o = window.location.href; 463 if (-1 < o.indexOf("?") && (o = o.split("?")[0]), t) { 464 n.querySelector('input[name="contact[SearchPageRequestForm]"]'); 465 var r = n.querySelector('input[name="contact[name]"]'), 466 c = n.querySelector('input[type="tel"]'), 467 i = n.querySelector('textarea[name="contact[message]"]'); 468 if ("" == a.value || "" == r.value || "" == c.value || "" == i.value) return alert("One or more fields are missing!"), !1; 469 Email.send({ 470 Host: "smtp.sendgrid.net", 471 Username: "apikey", 472 Password: "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", 473 To: "[email protected]", 474 From: "".concat(a), 475 Subject: "Search Page Request Form - No Results", 476 Body: "\n Name: ".concat(r, "<br>\n Email: ").concat(a, "<br>\n Tel: ").concat(c, "<br>\n Message: ").concat(i, "\n ") 477 }).then(function(e) { 478 "OK" == e ? (document.querySelector(".search-page .form-success").classList.add("active"), i.value = "", console.log(e)) : alert("There seems to be a problem. Please try again later") 479 }) 480 } else { 481 var l = n.querySelector('input[name="contact[PriceQuoteForm]"]').value, 482 s = n.querySelector('input[name="contact[Manufacturer]"]').value, 483 u = n.querySelector('input[name="contact[PatternName]"]').value, 484 d = n.querySelector('input[name="contact[ColorName]"]').value; 485 if ("" == a || "" == s || "" == u || "" == d) return alert("One or more fields are missing!"), !1; 486 Email.send({ 487 Host: "smtp.sendgrid.net", 488 Username: "apikey", 489 Password: "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", 490 To: "[email protected]", 491 From: "".concat(a), 492 Subject: "Price Quote Request (".concat(randoNum, ") - ").concat(s, " - ").concat(u, " - ").concat(d), 493 Body: "\n Email: ".concat(a, "<br>\n Manufacturer: ").concat(s, "<br>\n Pattern Name or #: ").concat(u, "<br>\n Color Name or #: ").concat(d, "<br>\n Form Used: ").concat(l, "<br>\n URL which form is used: ").concat(o, "\n ") 494 }).then(function(e) { 495 "OK" == e ? (document.querySelector(".search-page .form-success").classList.add("active"), n.querySelector('input[name="contact[Manufacturer]"]').value = "", n.querySelector('input[name="contact[PatternName]"]').value = "", n.querySelector('input[name="contact[ColorName]"]').value = "") : alert(e) 496 }), m(a, randoNum, s, u, d) 497 } 498 }); 499 var t = document.querySelector(".form-success"); 500 t.addEventListener("click", function(e) { 501 e.target.closest(".inner") || t.classList.remove("active") 502 }), document.querySelector(".js-close-btn").addEventListener("click", function(e) { 503 t.classList.remove("active") 504 }) 505 } 506 var e = 0 < document.querySelectorAll(".pqr-empty-collection").length; 507 if (e && function() { 508 var e = document.querySelectorAll(".js-activate-hover"),
509 t = document.querySelector(".js-hover-div"), 510 n = document.querySelector(".js-close-text"), 511 a = [document.querySelector(".js-close-btn"), n]; 512 document.querySelector(".add-more"); 513 0 < document.querySelectorAll(".empty-collection .lead h6").length ? e.forEach(function(e) { 514 e.addEventListener("click", function() { 515 t.classList.add("active") 516 }) 517 }) : e.forEach(function(e) { 518 e.style.display = "none" 519 }), t.addEventListener("click", function(e) { 520 e.target.closest(".inner") || t.classList.remove("active") 521 }); 522 523 for (var o = 0; o < a.length; o++) { 524 if (a[o] !== null) { 525 a[o].addEventListener("click", function() { 526 t.classList.remove("active") 527 }); 528 } 529 } 530 document.querySelector(".pqr-empty-collection .send-action button").addEventListener("click", function(e) { 531 e.preventDefault(); 532 var t = e.target.form, 533 n = t.querySelector('input[type="email"]').value, 534 a = t.querySelector('input[name="contact[PriceQuoteForm]"]').value, 535 o = t.querySelector('input[name="contact[Manufacturer]"]').value, 536 r = t.querySelector('input[name="contact[PatternName]"]').value, 537 c = t.querySelector('input[name="contact[ColorName]"]').value, 538 i = window.location.href; 539 if (-1 < i.indexOf("?") && (i = i.split("?")[0]), "" == n || "" == o || "" == r || "" == c) return alert("One or more fields are missing!"), !1; 540 Email.send({ 541 Host: "smtp.sendgrid.net", 542 Username: "apikey", 543 Password: "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", 544 To: "[email protected]", 545 From: "".concat(n), 546 Subject: "Price Quote Request (".concat(randoNum, ") - ").concat(o, " - ").concat(r, " - ").concat(c), 547 Body: "\n Email: ".concat(n, "<br>\n Manufacturer: ").concat(o, "<br>\n Pattern Name or #: ").concat(r, "<br>\n Color Name or #: ").concat(c, "<br>\n Form Used: ").concat(a, "<br>\n URL which form is used: ").concat(i, "\n ") 548 }).then(function(e) { 549 "OK" == e ? (document.querySelector("#qoute-form .form-success").classList.add("active"), t.querySelector('input[name="contact[Manufacturer]"]').value = "", t.querySelector('input[name="contact[PatternName]"]').value = "", t.querySelector('input[name="contact[ColorName]"]').value = "") : (console.log(e), alert(e)) 550 }), m(n, randoNum, o, r, c) 551 }); 552 var r = document.querySelector(".form-success"); 553 554 if (r !== null) { 555 r.addEventListener("click", function(e) { 556 e.target.closest(".inner") || r.classList.remove("active") 557 }), document.querySelector(".form-success .js-close-btn").addEventListener("click", function(e) { 558 r.classList.remove("active") 559 }) 560 } 561 }(), 0 < document.querySelectorAll(".collections-page #side-wrapper .price-quote-form").length) { 562// document.querySelector("#quote-form .send-action button").addEventListener("click", function(e) { 563// e.preventDefault(); 564// var t = e.target.form, 565// n = t.querySelector('input[type="email"]').value, 566// a = t.querySelector('input[name="contact[PriceQuoteForm]"]').value, 567// o = t.querySelector('input[name="contact[Manufacturer]"]').value, 568// r = t.querySelector('input[name="contact[PatternName]"]').value, 569// c = t.querySelector('input[name="contact[ColorName]"]').value, 570// i = window.location.href; 571// if (-1 < i.indexOf("?") && (i = i.split("?")[0]), "" == n || "" == o || "" == r || "" == c) return alert("One or more fields are missing!"), !1; 572// Email.send({ 573// Host: "smtp.sendgrid.net", 574// Username: "apikey", 575// Password: "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", 576// To: "[email protected]",
577// From: "".concat(n), 578// Subject: "Price Quote Request (".concat(randoNum, ") - ").concat(o, " - ").concat(r, " - ").concat(c), 579// Body: "\n Email: ".concat(n, "<br>\n Manufacturer: ").concat(o, "<br>\n Pattern Name or #: ").concat(r, "<br>\n Color Name or #: ").concat(c, "<br>\n Form Used: ").concat(a, "<br>\n URL which form is used: ").concat(i, "\n ") 580// }).then(function(e) { 581// "OK" == e ? (document.querySelector("#quote-form .form-success").classList.add("active"), t.querySelector('input[name="contact[Manufacturer]"]').value = "", t.querySelector('input[name="contact[PatternName]"]').value = "", t.querySelector('input[name="contact[ColorName]"]').value = "") : alert("There seems to be a problem. Please try again later") 582// }), m(n, randoNum, o, r, c) 583// }); 584// var n = document.querySelector(".form-success"); 585// n.addEventListener("click", function(e) { 586// e.target.closest(".inner") || n.classList.remove("active") 587// }), document.querySelector(".js-close-btn").addEventListener("click", function(e) { 588// n.classList.remove("active") 589// }) 590 } 591// if (0 < document.querySelectorAll(".page-price-quote").length) { 592// document.querySelector(".page-price-quote .btn-actions button").addEventListener("click", function(e) { 593// e.preventDefault(); 594// var t = e.target.form, 595// n = t.querySelector('input[type="email"]').value, 596// a = t.querySelector('input[name="contact[PriceQuoteForm]"]').value, 597// o = t.querySelector('input[name="contact[Manufacturer]"]').value, 598// r = t.querySelector('input[name="contact[PatternName]"]').value, 599// c = t.querySelector('input[name="contact[ColorName]"]').value, 600// i = window.location.href; 601// if (-1 < i.indexOf("?") && (i = i.split("?")[0]), "" == n || "" == o || "" == r || "" == c) return alert("One or more fields are missing!"), !1; 602// Email.send({ 603// Host: "smtp.sendgrid.net", 604// Username: "apikey", 605// Password: "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", 606// To: "[email protected]", 607// From: "".concat(n), 608// Subject: "Price Quote Request (".concat(randoNum, ") - ").concat(o, " - ").concat(r, " - ").concat(c), 609// Body: "\n Email: ".concat(n, "<br>\n Manufacturer: ").concat(o, "<br>\n Pattern Name or #: ").concat(r, "<br>\n Color Name or #: ").concat(c, "<br>\n Form Used: ").concat(a, "<br>\n URL which form is used: ").concat(i, "\n ") 610// }).then(function(e) { 611// "OK" == e ? (document.querySelector(".page-price-quote .form-success").classList.add("active"), t.querySelector('input[name="contact[Manufacturer]"]').value = "", t.querySelector('input[name="contact[PatternName]"]').value = "", t.querySelector('input[name="contact[ColorName]"]').value = "") : alert("There seems to be a problem. Please try again later") 612// }), m(n, randoNum, o, r, c) 613// }); 614// var a = document.querySelector(".form-success"); 615// a.addEventListener("click", function(e) { 616// e.target.closest(".inner") || a.classList.remove("active") 617// }), document.querySelector(".js-close-btn").addEventListener("click", function(e) { 618// a.classList.remove("active") 619// }) 620// } 621 if (0 < document.querySelectorAll(".collections-page").length && !e) { 622 var o = document.querySelector(".collections-page").dataset.collectionId; 623 if (o) { 624 var C = function() { 625 _swat.initializeActionButtons(".mongo-db") 626 }, 627 r = function(e) { 628 if (0 < e.data.count) { 629 document.querySelector(".js-current-count").innerHTML = e.data.count; 630 var t = e.data.productsToReturn;
631 document.querySelector(".collection-products").classList.add("loading-done"); 632 var n = !(j.innerHTML = ""), 633 a = !1, 634 o = void 0; 635 try { 636 for (var r, c = t[Symbol.iterator](); !(n = (r = c.next()).done); n = !0) { 637 var i = r.value, 638 l = window.location.origin; 639 l = l + "/products/" + i.handle; 640 var s = document.createElement("div"); 641 s.classList.add("column", "l3", "m4", "s6", "product-block"); 642 var u = document.createElement("a"); 643 u.classList.add("image"), u.href = l, u.style.background = "url(".concat(i.images, ")"), u.style.backgroundPosition = "50% 50%", u.style.backgroundSize = "cover", s.appendChild(u); 644 var d = document.createElement("p"); 645 d.innerHTML = i.price.$numberDecimal + "/Yard", u.appendChild(d); 646 var m = document.createElement("div"); 647 m.classList.add("Block__text-container"), toolkit.insertAfter(m, u); 648 var p = document.createElement("a"); 649 p.classList.add("product-title"), p.href = l, m.appendChild(p); 650 var f = document.createElement("p"); 651 f.innerHTML = i.title, p.appendChild(f), j.appendChild(s); 652 var v = document.createElement("button"); 653 v.classList.add("swym-button", "swym-add-to-wishlist-view-product", "product-".concat(i.id)), v.dataset.variantId = i.variant, v.dataset.productId = i.id, v.dataset.withEpi = !0, v.dataset.swaction = "addToWishlist", m.appendChild(v) 654 } 655 } catch (e) { 656 a = !0, o = e 657 } finally { 658 try { 659 n || null == c.return || c.return() 660 } finally { 661 if (a) throw o 662 } 663 } 664 var y = e.data.count, 665 h = Math.ceil(y / P); 666 document.querySelector(".pagination").innerHTML = ""; 667 var g = document.createElement("span"), 668 b = document.createElement("span"); 669 if (g.classList.add("deco"), g.innerHTML = "...", b.classList.add("deco"), b.innerHTML = "...", 3 < x) { 670 var S = document.createElement("span"); 671 S.classList.add("page"), S.dataset.int = 1, S.innerHTML = "<a>1</a>", document.querySelector(".pagination").appendChild(S), toolkit.insertAfter(b, S) 672 } 673 for (var q = Math.floor(x - 3), w = Math.floor(x + 3), L = 1; L <= h; L++) 674 if (q < L && L < w) { 675 var k = document.createElement("span"); 676 k.innerHTML = "<a>".concat(L, "</a>"), k.classList.add("page"), k.dataset.int = L, document.querySelector(".pagination").appendChild(k) 677 } 678 if (x < h - 2) { 679 var C = document.createElement("span"); 680 C.classList.add("page"), C.innerHTML = "<a>".concat(h, "</a>"), C.dataset.int = h, document.querySelector(".pagination").appendChild(g), document.querySelector(".pagination").appendChild(C) 681 } 682 document.querySelector('.page[data-int="'.concat(x, '"]')).classList.add("current"); 683 for (var E = document.querySelectorAll(".page"), $ = 0; $ < E.length; $++) E[$].addEventListener("click", function(e) { 684 x = parseInt(e.target.closest("span").dataset.int), T(x, M), N(x, M) 685 }) 686 }
686 else document.querySelector(".collection-products").classList.add("loading-done") 687 }, 688 T = function(e, t) { 689 document.querySelector(".collection-products").classList.remove("loading-done"); 690 var n = "".concat(c, "/products/").concat(o, "?limit=").concat(P, "&page=").concat(e); 691 0 < t.length && (n += "&filter=".concat(t.join(","))), j.innerHTML = "", axios.get(n).then(function(e) { 692 document.querySelector(".js-current-count").innerHTML = e.data.count, r(e), window.SwymCallbacks.push(C) 693 }).catch(function(e) { 694 console.log(e) 695 }) 696 }, 697 E = function() { 698 var o = {}; 699 return window.location.search.replace(new RegExp("([^?=&]+)(=([^&#]*))?", "g"), function(e, t, n, a) { 700 return o[t] = decodeURIComponent(a.replace(/\+/g, "%20")) 701 }), o 702 }, 703 $ = function(a) { 704 if (document.querySelector(".Sidebar__active-filters").innerHTML = "", 0 < a.length) { 705 for (var e = 0; e < a.length; e++) { 706 var t = document.createElement("a"), 707 n = a[e].replace("menu-", ""); 708 n = n.split("_")[1], n = decodeURIComponent(n), t.classList.add("Sidebar__active-filter"), t.dataset.tag = decodeURIComponent(a[e]), t.innerHTML = "".concat(n, ' <i class="fa fa-close"></i>'), document.querySelector(".Sidebar__active-filters").appendChild(t) 709 } 710 for (var o = document.querySelectorAll(".Sidebar__active-filter"), r = 0; r < o.length; r++) o[r].addEventListener("click", function(e) { 711 console.log('test'); 712 var t = e.target.closest(".Sidebar__active-filter"), 713 n = t.dataset.tag; 714 n = encodeURIComponent(n), console.log(n), a = a.filter(function(e) { 715 return e !== n 716 }), console.log(a), T(x, a), N(x, a), t.remove(), n = decodeURIComponent(n), document.querySelector('.filter-tags[data-tag="'.concat(n, '"]')).classList.remove("active-tag") 717 }) 718 } 719 }, 720 N = function(e, t) { 721 var n = "?page=".concat(e); 722 0 < t.length && (n += "&filter=".concat(t.join(","))); 723 var a = { 724 activePage: e, 725 activeFilters: t 726 }; 727 history.pushState(a, i, n) 728 }; 729 window.SwymCallbacks || (window.SwymCallbacks = []); 730 var M = E().filter ? E().filter.split(",") : []; 731 M = M.map(function(e) { 732 return encodeURIComponent(e) 733 }); 734 var x = E().page || 1; 735 var P = 48, 736 c = "https://fabrics-mongo-filter.name", 737 j = document.querySelector(".mongo-db"), 738 i = document.querySelector(".collections-page").dataset.collectionTitle; 739 axios.get("".concat(c, "/products/").concat(o, "?limit=").concat(P, "&page=").concat(x, "&filter=").concat(M)).then(function(e) { 740 if (0 < e.data.count) return document.querySelector(".js-total-count").innerHTML = e.data.count, document.querySelector(".js-current-count").innerHTML = e.data.count, r(e), $(M), axios.get("".concat(c, "/filter-menu/").concat(o)) 741 }).then(function(e) { 742 document.querySelector(".sidebar").innerHTML = "", document.querySelector(".sidebar").classList.remove("loading"); 743 for (var t, n, a = e.data, o = 0, r = Object.keys(a); o < r.length; o++) { 744 var c = r[o]; 745 if ((-1 === window.collectionInfo.handle.indexOf("designer-wallpaper") || "menu-content" !== c && "menu-suggested-use" !== c) && ("brand" === c || "menu-style" === c || "menu-content" === c || "menu-color" === c || "menu-suggested-use" === c)) { 746 var i = document.createElement("div"); 747 i.classList.add("accordion"); 748 var l = document.createElement("div"); 749 l.classList.add("main"); 750 var s = c.replace(/-/g, " "); 751 752 if (s == 'brand') { 753 s = 'designer brands'; 754 } 755 756 757 "menu color" != s && "menu content" != s && "menu style" != s && "menu suggested use"
757!= s || (s = s.replace("menu ", "")), l.innerHTML = "<h3>".concat(s, '</h3>\n <span class="icon" aria-hidden="true">\n <i class="fa fa-chevron-down" aria-hidden="true"></i>\n </span>'), i.appendChild(l), document.querySelector(".sidebar").appendChild(i); 758 var u = document.createElement("div"); 759 u.classList.add("pane"), t = u, (n = l).parentNode.insertBefore(t, n.nextSibling), a[c] = a[c].sort(); 760 var d = !0, 761 m = !1, 762 p = void 0; 763 try { 764 for (var f, v = a[c][Symbol.iterator](); !(d = (f = v.next()).done); d = !0) { 765 var y = f.value, 766 h = document.createElement("a"); 767 if (-1 === y.indexOf("|")) { 768 var g = y.replace(/\|/g, " | "); 769 if ("menu-color" == c) { 770 var b = y.replace(/\/.*/g, ""); 771 h.innerHTML = '\n <i class="fa fa-circle" aria-hidden="true" style="color: '.concat(b, '"></i>\n <p>').concat(g, "</p>\n ") 772 } else h.innerHTML = "<p>".concat(g, "</p>"); 773 h.dataset.tag = "".concat(c, "_").concat(y), h.classList.add("filter-tags"), "color" != c && h.classList.add("sidebar-item"), u.a
773ppendChild(h) 774 } 775 } 776 } catch (e) { 777 m = !0, p = e 778 } finally { 779 try { 780 d || null == v.return || v.return() 781 } finally { 782 if (m) throw p 783 } 784 } 785 if ("designer brands" == s) { 786 var S = document.createElement("a"); 787 788 if (window.collectionInfo.handle.indexOf("wallcovering") > -1 && window.collectionInfo.handle != 'wallcovering') { 789 S.classList.add("sidebar-item"), S.innerHTML = '<p style="font-weight: 700;color: rgb(0, 0, 0);" >View All Our Wallcoverings</p>', S.href = "/collections/wallcovering", u.appendChild(S) 790 // } else if (window.collectionInfo.handle.indexOf("fabric") > -1 && window.collectionInfo.handle != 'fabric-1') { 791 // S.classList.add("sidebar-item"), S.innerHTML = '<p style="font-weight: 700;color: rgb(0, 0, 0);" >View All Our Fabrics</p>', S.href = "/collections/fabric-1", u.appendChild(S) 792 } else { 793 S.classList.add("sidebar-item"), S.innerHTML = '<p style="font-weight: 700;color: rgb(0, 0, 0);" >See Other Brands Not Shown</p>', S.href = "/pages/designer-brands", u.appendChild(S) 794 } 795 } 796 } 797 } 798 for (var q = document.querySelectorAll(".main"), w = 0; w < q.length; w++) q[w].addEventListener("click", function(e) { 799 var t = e.target.closest(".accordion"), 800 n = e.target.closest(".main"), 801 a = n.classList.contains("pane-open"), 802 o = t.querySelector(".icon i"), 803 r = t.querySelector(".pane"); 804 a ? (n.classList.remove("pane-open"), r.classList.remove("pane-open"), o.classList.remove("fa-chevron-up"), o.classList.add("fa-chevron-down")) : (n.classList.add("pane-open"), r.classList.add("pane-open"), o.classList.remove("fa-chevron-down"), o.classList.add("fa-chevron-up")) 805 }); 806 for (var L = document.querySelectorAll(".filter-tags"), k = 0; k < L.length; k++) L[k].addEventListener("click", function(e) { 807 808 var t = e.target.closest(".filter-tags"); 809 t.classList.add("active-tag"); 810 var n = t.dataset.tag; 811 812 n = encodeURIComponent(n), -1 < (M = (M = E().filter ? E().filter.split(",") : []).map(function(e) { 813 return encodeURIComponent(e) 814 815 })).indexOf(n) ? M.splice(M.indexOf(n), 1) : (M.push(n), T(x, M)), N(x, M), document.querySelector(".Sidebar__active-filters").innerHTML = "", $(M); 816 var a = t.closest(".accordion").querySelector(".main"); 817 t.closest(".pane").classList.remove("pane-open"), a.classList.remove("pane-open"), a.querySelector("i").classList.remove("fa-chevron-up"), a.querySelector("i").classList.add("fa-chevron-down") 818 }); 819 window.SwymCallbacks.push(C) 820 }).catch(function(e) { 821 console.log(e) 822 }), window.addEventListener("popstate", function(e) { 823 x = e.state ? (console.log(e.state), M = e.state.activeFilters, e.state.activePage) : (M = (M = E().filter ? E().filter.split(",") : []).map(function(e) { 824 return encodeURIComponent(e) 825 }), E().page || 1), T(x, M), 826 function() { 827 for (var e = document.querySelectorAll(".Sidebar__active-filter"), t = 0, n = e.length; t < n; t++) - 1 === M.indexOf(e[t].dataset.tag) && e[t].remove() 828 }(), $(M) 829 }) 830 } 831 } 832 if (0 < document.querySelectorAll(".place-order").length) { 833 for (var B, O = document.querySelectorAll('input[type="radio"]'), l = 0; l < O.length; l++) O[l].addEventListener("click", function(e) { 834 "No" == e.target.value ? document.querySelector(".shipping-address").classList.remove("hidden") : document.querySelector(".shipping-address").classList.add("hidden") 835 }); 836 ! function l(e) { 837 e.addEventListener("click", function(e) {
838 for (var t = e.target.closest(".js-clone"), n = e.target.closest(".js-addMoreBtn"), a = t.cloneNode(!0), o = document.createElement("div"), r = document.createElement("i"), c = a.querySelectorAll(".po-info"), i = 0; i < c.length; i++) c[i].value = ""; 839 o.classList.add("add-more-btn"), r.classList.add("fa", "fa-minus-circle"), o.appendChild(r), t.appendChild(o), n.remove(), toolkit.insertAfter(a, t), l(document.querySelector(".js-addMoreBtn")), o.addEventListener("click", function(e) { 840 e.target.closest(".js-clone").remove() 841 }) 842 }) 843 }(document.querySelector(".js-addMoreBtn")), document.querySelector(".btn").addEventListener("click", function(e) { 844// e.preventDefault(); 845// var t = document.querySelector('input[name="firstName"]').value, 846// n = document.querySelector('input[name="lastName"]').value, 847// a = "".concat(t, " ").concat(n); 848// if ("" == t) return alert("First Name is missing"), !1; 849// if ("" == n) return alert("Last Name is missing"), !1; 850// var o = document.querySelector('input[type="email"]').value; 851// if ("" == o) return alert("Email is missing"), !1; 852// var r = document.querySelector('input[name="Address').value, 853// c = document.querySelector('input[name="AddressStreet').value, 854// i = document.querySelector('input[name="AddressStreet2').value; 855// if ("" == r) return alert("Address is missing"), !1; 856// var l = document.querySelector('input[name="City"]').value, 857// s = document.querySelector('input[name="State"]').value, 858// u = document.querySelector('input[name="Zip"]').value, 859// d = document.querySelector('select[name="Country"]'); 860// d = d.options[d.selectedIndex].value; 861// for (var m = document.querySelector('input[name="Phone"]').value, p = 0; p < O.length; p++) 1 == O[p].checked && (B = O[p].value); 862// if ("No" == B) { 863// if ("" == document.querySelector('input[name="shippingAddress"]').value) return alert("Shipping Address is missing"), !1; 864// document.querySelector('input[name="shippingAddressStreet"]').value, document.querySelector('input[name="shippingAddressStreet2"]').value 865// } 866// var f = document.querySelector('textarea[name="Comments"]').value, 867// v = document.querySelectorAll(".js-clone"), 868// y = [], 869// h = !0, 870// g = !1, 871// b = void 0; 872// try { 873// for (var S, q = v[Symbol.iterator](); !(h = (S = q.next()).done); h = !0) { 874// var w = S.value.querySelectorAll(".po-info"), 875// L = {}, 876// k = !0, 877// C = !1, 878// E = void 0; 879// try { 880// for (var $, T = w[Symbol.iterator](); !(k = ($ = T.next()).done); k = !0) { 881// var N = $.value; 882// if ("" == N.value) return alert("One of the values is missing. Please try again"), !1; 883// if ("BrandName" == N.name) { 884// var M = N.value; 885// L.brand = M 886// } 887// if ("PatternName" == N.name) { 888// var x = N.value; 889// L.pattern = x 890// } 891// if ("ColorName" == N.name) { 892// var P = N.value; 893// L.color = P 894// } 895// if ("QtyYards" == N.name) { 896// var j = N.value; 897// L.qty = j 898// } 899// } 900// } catch (e) { 901// C = !0, E = e 902// } finally { 903// try { 904// k || null == T.return || T.return() 905// } finally { 906// if (C) throw E 907// } 908// } 909// y.push(L) 910// } 911// } catch (e) { 912// g = !0, b = e 913// } finally { 914// try { 915// h || null == q.return || q.return() 916// } finally { 917// if (g) throw b 918// } 919// } 920// var R = { 921// Host: "smtp.sendgrid.net", 922// Username: "apikey", 923// Password: "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", 924// To: o,
925// From: "[email protected]", 926// Subject: "Fabric Order", 927// Body: '\n <div class="img-container" style="display:block; max-width: 400px;">\n <img src="https://cdn.shopify.com/s/files/1/2470/6270/files/Screen_Shot_2019-02-15_at_12.07.16_PM.png?5840171280651837286" style="width: 100%;">\n </div>\n <h1 style="font-family:\'Times New Roman\', \'serif\'; color:#808080; font-weight: 700; font-size: 18px; margin-bottom: 10px;">Thank you for your order</h1>\n <p style="font-family: \'Times New Roman\', serif; color:#808080; margin-bottom: 10px; font-size: 16px;">\n Thank you for your order and trust in our company. We will confirm stock and your invoice will be generated shortly.\n </p>\n <p style="font-family:\'Times New Roman\', \'serif\'; color:#808080; margin-bottom: 10px; font-size: 16px;">\n If your order was placed over the weekend or during a holiday, your invoice will be sent the next business day. If the stock amount you ordered is not available, we will contact you.\n </p>\n <p style="font-family:\'Times New Roman\', \'serif\'; color:#808080; margin-bottom: 10px; font-size: 16px;">\n When we email you the invoice, there will be a secure link to make your payment with your credit card. If you prefer to call in your credit card information, call <span style="text-decoration: underline;">800-582-2624</span>.\n </p>\n <p style="font-family:\'Times New Roman\', \'serif\'; color:#808080; margin-bottom: 0; font-size: 16px;">\n No order will ship until payment has been made in full. Please feel free to call us with any questions. Thank you!\n </p>\n <br>\n ' 928// }, 929// A = "\n <p style=\"font-family:'Times New Roman', 'serif'; color:#808080; margin-bottom: 0; font-size: 16px;\">\n From Place Order Page<br>\n Email: ".concat(o, "<br>\n Customer Name: ").concat(a, "<br>\n Address: ").concat(r, "<br>\n Street Address: ").concat(c, "<br>\n Address Line 2: ").concat(i, "<br>\n City: ").concat(l, "<br>\n State: ").concat(s, "<br>\n ZIP: ").concat(u, "<br>\n Country: ").concat(d, "<br>\n Phone: ").concat(m, "<br>\n Shipping address same as billing?: ").concat(B, "<br>\n Comments: ").concat(f, "\n <br>\n <br>\n </p>\n "), 930// _ = { 931// Host: "smtp.sendgrid.net", 932// Username: "apikey", 933// Password: "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", 934// To: "[email protected]", 935// From: "".concat(o), 936// Subject: "Place Order Request (".concat(randoNum, ")"), 937// Body: A 938// }; 939// R.Body += A, y.forEach(function(e, t) { 940// var n = Math.abs(t + 1), 941// a = "\n <p style=\"font-family:'Times New Roman', 'serif'; color:#808080; font-size: 16px;\">\n Order #: ".concat(n, " <br>\n Price Quote ID <br>\n ID: ").concat(randoNum, " <br>\n Email: ").concat(o, " <br>\n Brand Name: ").concat(e.brand, " <br>\n Pattern Name or #: ").concat(e.pattern, " <br>\n Color Name or #: ").concat(e.color, " <br>\n Qty: ").concat(e.qty, " <br>\n </p>\n "); 942// R.Body += a, _.Body += a 943// }), R.Body += "\n <p style=\"font-family:'Times New Roman', 'serif'; color:#808080; font-size: 16px;\">\n Thank you, <br>\n The Team at Fabrics and Home <br>\n www.fabricsandhome.com <br>\n 800-582-2624 <br>\n </p>\n <br>\n <p style=\"font-family:'Times New Roman', 'serif'; color: #808080; font-size: 8px;\">Proud members of the Better Business Bureau for 30 YEARS</p>\n "; 944// var I = !1, 945// H = !1; 946// Email.send(R).then(function(e) { 947// "OK" == e && (console.log(e), I = !0) 948// }), Email.send(_).then(function(e) { 949// "OK" == e && (console.log(e), H = !0) 950// }), setTimeout(function() { 951// console.log("cli", I), console.log("adm", H), 1 == I && 1 == H ? document.querySelector(".form-success").classList.add("active") : alert("An error occurred. Please try again later") 952// }, 1e3) 953 }); 954 var s = document.querySelector(".form-success"); 955 s.addEventListener("click", function(e) { 956 e.target.closest(".inner") || s.classList.remove("active") 957 }), document.querySelector(".js-close-btn").addEventListener("click", function(e) { 958 s.classList.remove("active") 959 }) 960 } 961 0 < document.querySelectorAll(".article-page").length && (document.querySelector(".body a").addEventListener("click", function(e) { 962 e.preventDefault(); 963 var t = e.target.href, 964 n = e.target.target, 965 a = document.querySelector(".link-here a");
966 document.querySelector(".js-hover-div").classList.add("active"), a.href = t, a.target = n 967 }), document.querySelector(".js-close-text").addEventListener("click", function(e) { 968 document.querySelector(".js-hover-div").classList.remove("active") 969 })) 970});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.