M1217 - Stationery Love – GretelCreates Skip to content Submit Close search Just added to your cart Qty: View cart () Continue shopping Get 10% off when you buy 10 items or more Submit Search Log in Cart 0 items Search Home Clearance Shop Shop Menu Shop Advent Gifts & Accessories Gifts & Accessories Menu Gifts & Accessories Earrings Keyrings Pins Papers, Die Cuts & Ephemera Papers, Die Cuts & Ephemera Menu Papers, Die Cuts & Ephemera Die Cuts Ephemera Scrapbook Paper Pens, Pencils & Essentials Pens, Pencils & Essentials Menu Pens, Pencils & Essentials Erasers Essentials Fountain Pens Glues Highlighters & Mildlighters Pencils Pens Pencil Cases Scissors Planner Charms, Clips & Bands Planner Charms, Clips & Bands Menu Planner Charms, Clips & Bands Dangle Clips Planner Charms Planner Clips Planner Bands Bookmarks Planners, Notebooks & Journals Planners, Notebooks & Journals Menu Planners, Notebooks & Journals Notebooks & Journals Pencil Boards Planners Planner Accessories Sticky Notes Stamping Stamping Menu Stamping Inks Stamps Tools Stickers Stickers Menu Stickers Decorative Stickers Functional Stickers Vinyl Stickers Surprise Bags Fibre Craft Tools & Notions Fibre Craft Tools & Notions Menu Fibre Craft Tools & Notions Stitch Markers Yarn Tools & Accessories Washi Tape Washi Tape Menu Washi Tape Skinny Washi Tape 15-20mm Washi Tape Wide Washi Tape Foil Washi Tape Washi Holders/Cutters Advents New in! Coming Soon Shop by Brand Shop by Brand Menu Shop by Brand Apple Pie Memories Compoco Diamine Echo Park GretelCreates Exclusives Kokuyo Kyoei Orions Belt Meow Amor Creative Nakabayashi Noristudio Once More With Love P13 Papergeek Co Paper House Productions Paperkumaco Pipsticks Plus Sakura Sharpie Shine Sticker Studio Smarty Pants Paper Co Speedball Sticker King Sticko Sun-Star Teresa Collins Wonton in a Million Zebra Search Home Clearance Shop Advent Gifts & Accessories Earrings Keyrings Pins Papers, Die Cuts & Ephemera Die Cuts Ephemera Scrapbook Paper Pens, Pencils & Essentials Erasers Essentials Fountain Pens Glues Highlighters & Mildlighters Pencils Pens Pencil Cases Scissors Planner Charms, Clips & Bands Dangle Clips Planner Charms Planner Clips Planner Bands Bookmarks Planners, Notebooks & Journals Notebooks & Journals Pencil Boards Planners Planner Accessories Sticky Notes Stamping Inks Stamps Tools Stickers Decorative Stickers Functional Stickers Vinyl Stickers Surprise Bags Fibre Craft Tools & Notions Stitch Markers Yarn Tools & Accessories Washi Tape Skinny Washi Tape 15-20mm Washi Tape Wide Washi Tape Foil Washi Tape Washi Holders/Cutters Advents New in! Coming Soon Shop by Brand Apple Pie Memories Compoco Diamine Echo Park GretelCreates Exclusives Kokuyo Kyoei Orions Belt Meow Amor Creative Nakabayashi Noristudio Once More With Love P13 Papergeek Co Paper House Productions Paperkumaco Pipsticks Plus Sakura Sharpie Shine Sticker Studio Smarty Pants Paper Co Speedball Sticker King Sticko Sun-Star Teresa Collins Wonton in a Million Zebra M1217 - Stationery Love Regular price £2.30 Sale price £2.30 Sale Unit price /per Tax included. Shipping calculated at checkout. Default Title Error Quantity must be 1 or more Add to cart Adding product to your cart WEEEEEEEEE! Stationery! I always get so excited when I get new stationery just like these munchkins! SIZE: 4.5" x 3.5" MATERIAL: non-removable matte white sticker paper Copyright © 2018 by Margaret Ying of OnceMoreWithLove Designs Inc. All rights reserved. All illustrations, artwork, graphic, characters, logos, and/or design in this listing are the copyrighted works of Margaret Ying of OnceMoreWithLove Designs Inc. Any unlawful redistribution, reproduction, alteration, or transmission of any illustrations, artwork, graphic, characters, logos, and/or design on this site in any form or by any means, including but not limited to photocopying, downloading, recording, or other electronic or mechanical methods, without the prior written permission of the artist is strictly prohibited and punishable by Canadian, US, and international copyright laws. Share Share on Facebook Tweet Tweet on Twitter Pin it Pin on Pinterest Quick links Search Contact Us Shop Privacy Policy Refund Policy Shipping Policy Terms of Service Have any product requests? Are there any items you find difficult to get your hands on? Feel free to send us an email and we'll see what we can do. Facebook Instagram Payment methods American Express Apple Pay Diners Club Discover Google Pay Maestro Mastercard PayPal Shop Pay Visa © 2022, GretelCreates Powered by Shopify Use left/right arrows to navigate the slideshow or swipe left/right if using a mobile device Choosing a selection results in a full page refresh. Press the space key then arrow keys to make a selection. £0.78 £456.78 £123,456.78 `; //created dynamic select option $('.csp_variants').prepend(SelectDiv); var options_html= varianValuesArray.forEach(Create_selectmenu); function Create_selectmenu(item) { var options=`${item}`; //created dynamic options for select menu $(`#${select_id}`).append(options); } } } // CSP detailpage Form function checkForCollectionPage(){ $("a").each(function() { var curr_this = $(this); var curr_href = curr_this.attr("href"); var imgg = $(curr_this).closest('div').find('img').first(); if(typeof curr_href !== 'undefined') { if(curr_href.indexOf("products/") >= 1 && $( this ).parent().get( 0 ).tagName != 'LI' ){ curr_href = curr_href.split("?")[0]; fetch(curr_href + ".json", { credentials: "same-origin" }).then(function(data) { data.json().then(function(data) { var get_product = data.product; var csp_product_on = false; //check for collection if(csp_product_on != true){ for (collection_ID of colIDSresults) { if(collection_ID.replace(/ /g,'')==collection_id.replace(/ /g,'')) { csp_product_on=true; } } } //check all products if(is_all_products == "1" && csp_product_on != true) { csp_product_on=true; console.log('all pro match ',csp_product_on); } //check specific products if(prodAllresults.includes(get_product.id.toString()) || colAllresults.includes(get_product.id.toString()) && csp_product_on != true){ csp_product_on=true; } var todayDate=new Date(); var show_csp_form = true; if(available_date_for_all_products != null && show_available_date =='1' && todayDate >= new Date(available_date_for_all_products)){ show_csp_form=false; } console.log('chrcking',enable,csp_product_on,show_csp_form); if( enable=="1" && csp_product_on && show_csp_form){ //console.log(curr_href,curr_this); //console.log(get_product); if($(curr_this).find('img').first().length > 0){ $(curr_this).find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').find('img').first().length > 0){ $(curr_this).closest('div').find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().parent().find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().parent().parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().parent().find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().parent().parent().parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().parent().parent().find('img').first().parent().addClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().parent().parent().parent().parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().parent().parent().parent().find('img').first().parent().addClass(collectionLabelClass); } hidePriceOnAllPages(curr_this); } else{ if($(curr_this).closest('div').find('img').first().length > 0){ $(curr_this).closest('div').find('img').first().parent().removeClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().find('img').first().parent().removeClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().find('img').first().parent().removeClass(collectionLabelClass); }else if($(curr_this).closest('div').parent().parent().find('img').first().length > 0){ $(curr_this).closest('div').parent().parent().parent().find('img').first().parent().removeClass(collectionLabelClass); } } }) }) }; } }) } function checkForProductPage(){ if (window.location.pathname.indexOf('/products/') !== -1) { var current_collection_list_prodPage = filterConvertArray(csp_current_collection_list_prodPage); var csp_total_collection_list_prodPage = colIDSresults; var csp_enabled = "no"; //check for collection ids if(csp_enabled != 'yes'){ for (collection_name of csp_total_collection_list_prodPage) { for (current_collection of current_collection_list_prodPage) { if(current_collection.length >= 2 && collection_name.length >= 2) { if(current_collection.replace(/ /g,'')==collection_name.replace(/ /g,'')) { csp_enabled="yes"; } } } } } //check all products if(is_all_products == "1" && csp_enabled != 'yes' ) { csp_enabled="yes"; } //check specific products if(prodAllresults.includes(product_id.toString()) && csp_enabled != "yes"){ csp_enabled="yes"; } var todayDate=new Date(); var show_csp_form = true; if(available_date_for_all_products != null && show_available_date =='1' && todayDate >= new Date(available_date_for_all_products)){ show_csp_form=false; } var show_available_date_content = ''; if(show_available_date == '1' && show_available_date_msg == '1' && available_date_for_all_products != null && available_date_for_all_products != ''){ if(available_date_msg != null){ convertedDate = apply_date_formate($,date_format,available_date_for_all_products); responseMessage = getShortCodeFromMessage($,available_date_msg,convertedDate); show_available_date_content = ' '+responseMessage+' '; } } console.log('detail page',csp_enabled,show_csp_form); if(csp_enabled=="yes" && show_csp_form){ //$('.csp-prod-wrapper.'+product_handle).remove(); if(form_button_display_option == 'show_csp_button'){ var addtocspbutton = ' '+show_available_date_content+' '+ ' '+btn_name+' '+ ' '; }else{ var addtocspbutton = ' '+ ' '+' '+show_available_date_content+' '+ ' '+title+' '+ ' '+ submit_btn_name+' '+ ' '; } $( "form" ).each(function( index ) { var getForm = $(this).attr("action"); if(getForm == "/cart/add" && $(".csp-prod-wrapper-detailpage").length == 0){ $('form[action="/cart/add"]').find('button').hide(); $(this).after(addtocspbutton); $(".csp-prod-button").show(); hidePriceOnAllPages($(this)); } }); } else{ $('form[action="/cart/add"]').show(); } } } function hidePriceOnAllPages(curr_this){ // var hidePriceList = `.product-pricing,.productitem--price`; // $("a").each(function() { // var curr_this = $(this); // var curr_href = curr_this.attr("href"); // if(typeof curr_href !== 'undefined') // { // if(curr_href.indexOf("products/") >= 1 && $( this ).parent().get( 0 ).tagName != 'LI' ){ // console.log(curr_this); if($(curr_this).find(hidePriceList).length > 0){ $(curr_this).find(hidePriceList).hide(); }else if($(curr_this).closest('div').find(hidePriceList).length > 0){ // console.log($(curr_this).closest('div').find(hidePriceList).length); $(curr_this).closest('div').find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().parent().find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().parent().parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().parent().parent().find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().parent().parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().parent().parent().find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList).hide(); }else if($(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList).length > 0){ $(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList).hide(); } // } // } // }); } // function showPriceOnAllPages(curr_this){ // if($(curr_this).find(hidePriceList).length > 0){ // $(curr_this).find(hidePriceList).show(); // }else if($(curr_this).closest('div').find(hidePriceList).length > 0){ // $(curr_this).closest('div').find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().parent().find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().parent().parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().parent().parent().find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().parent().parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().parent().parent().find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().parent().parent().parent().find(hidePriceList).show(); // }else if($(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList).length > 0){ // $(curr_this).closest('div').parent().parent().parent().parent().parent().find(hidePriceList).show(); // } // } /* CUSTOM DATE */ function apply_date_formate($,date_format,user_date_with_weekoff_cutoff){ var shoplanguage = Shopify.locale; var get_custom_date_format = 'not_set'; var d = new Date(user_date_with_weekoff_cutoff); console.log(d); console.log(user_date_with_weekoff_cutoff) var month = d.getMonth()+1; var day = d.getDate(); var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var monthNamesShort = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"]; var weekdayShort = ["Sun","Mon","Tues","Wed","Thur","Fri","Sat"]; var ord = ["st", "nd", "rd"]; var exceptions = [11, 12, 13] var nth = ord[(day % 10) - 1] == undefined || exceptions.includes(day % 100) ? "th" : ord[(day % 10) - 1] /* monthName= monthNames[d.getMonth()]; //like august monthShort= monthNamesShort[d.getMonth()]; //like aug dayOrd = day + nth; // like 12th dayName = weekday[d.getDay()]; // like sunday dayNameShort = weekdayShort[d.getDay()]; // like sun*/ year = d.getFullYear(); //like 2021 twoDigityear = year.toString().substr(-2); //like 21 singleDigitmonth = d.getMonth()+1; // like 5 month = ((''+month).length<2 ? '0' : '') + month ; // like 05 monthName= d.toLocaleDateString(shoplanguage, { month: 'long'}); //like august monthShort= d.toLocaleDateString(shoplanguage, { month: 'short'}); //like aug singleDigitday = d.getDate(); //like 2 singleDigitDayOrd= singleDigitday + nth // like 2nd day = ((''+day).length<2 ? '0' : '') + day; //like 02 dayOrd = day + nth; // like 02nd dayName = d.toLocaleDateString(shoplanguage, {weekday: 'long'}); // like sunday dayNameShort = d.toLocaleDateString(shoplanguage, { weekday: 'short'}); // like sun monthShort = monthShort.replace('.', ''); monthName = monthName.replace('.', ''); dayNameShort = dayNameShort.replace('.', ''); dayName = dayName.replace('.', ''); date_array_list=[]; date_array_list['dd'] = date_array_list['dayNameShort'] = dayNameShort; date_array_list['dddd'] = date_array_list['dayName']=dayName; date_array_list['D'] = date_array_list['singleDigitday']=singleDigitday; date_array_list['DD'] = date_array_list['day']=day; date_array_list['DDD'] = date_array_list['singleDigitDayOrd']=singleDigitDayOrd; date_array_list['DDDD'] = date_array_list['dayOrd']=dayOrd; date_array_list['M'] = date_array_list['singleDigitmonth'] = singleDigitmonth; date_array_list['MM'] = date_array_list['month']=month; date_array_list['MMM'] = date_array_list['monthShort']=monthShort; date_array_list['MMMM'] = date_array_list['monthName']=monthName; date_array_list['YYYY'] = date_array_list['year']=year; date_array_list['YY'] = twoDigityear; date_array_list['YYY'] = '`'+twoDigityear; console.log(date_array_list) date_format_arry = ['', date_array_list['year'] + '-' + date_array_list['month'] + '-' +date_array_list['day'], date_array_list['month'] + '-' +date_array_list['day']+ '-' +date_array_list['year'] , date_array_list['month'] + '/' +date_array_list['day']+ '/' +date_array_list['year'], date_array_list['monthShort'] + ', '+date_array_list['dayOrd']+' '+date_array_list['year'], date_array_list['dayOrd'] + ', '+date_array_list['monthShort']+' '+date_array_list['year'], date_array_list['dayNameShort']+', '+date_array_list['monthShort'] + ' '+date_array_list['dayOrd']+' '+date_array_list['year'], date_array_list['dayNameShort']+', '+date_array_list['dayOrd'] + ' '+date_array_list['monthShort']+' '+date_array_list['year'], date_array_list['day'] + '.' +date_array_list['month']+ '.' +date_array_list['year'], date_array_list['day'] + '-' +date_array_list['month']+ '-' +date_array_list['year'], date_array_list['month'] + '.' +date_array_list['day']+ '.' +date_array_list['year'] , date_array_list['year'] + '.' +date_array_list['month']+ '.' +date_array_list['day'] , date_array_list['year'] + '/' + date_array_list['month'] + '/' +date_array_list['day'], date_array_list['day'] + '/' +date_array_list['month']+ '/' +date_array_list['year'], date_array_list['dayOrd']+' '+date_array_list['monthShort'], date_array_list['dayNameShort']+', '+date_array_list['dayOrd'] + ' '+date_array_list['monthShort'], date_array_list['dayName']+', '+ date_array_list['monthName'] +' '+date_array_list['dayOrd'] ]; /* set custom date format */ //console.log('get_custom_date_format '+get_custom_date_format+' date_option '+date_option) if(get_custom_date_format != 'not_set' || ( date_option == 'custom' && edd_options.custom_date_format != ' ')){ eval(edd_options.additional_script); //console.log('edd_options.custom_date_format '+edd_options.custom_date_format) if(typeof edd_options.custom_date_format != 'undefined' && date_option == 'custom' && edd_options.custom_date_format != ' '){ client_custom_date_format = edd_options.custom_date_format; custom_date_format = client_custom_date_format; } custom_date_format = replaceAllOccurance(custom_date_format,4,'-',' - '); custom_date_format = replaceAllOccurance(custom_date_format,4,',',' , '); custom_date_format = replaceAllOccurance(custom_date_format,4,'.',' . '); custom_date_format = replaceAllOccurance(custom_date_format,4,'/',' / '); custom_date_format_array = custom_date_format.split(" "); create_cusom_date = ''; // console.log(custom_date_format_array.length) //console.log(custom_date_format_array) for(b=0;bPlease enter your email address."); count_name = false; } else { if(!email_regex.test(email)){ $('.csp-prod-form .c-form_label').after("Enter a valid email address."); // $('.err_email.text-danger').hide(); count_name = false; } } $('.err_email.text-danger').delay(4000).fadeOut(); setTimeout(function() { $('.err_email.text-danger').remove(); }, 4000); if(count_name){ $.ajax({ url: 'https://setubridgeapps.com/coming-soon-product/app/src/public/submitreq', method: 'GET', data: { /*form_data */ email: email, // productid:productid, productid:product_id, pid: shop+product_url, shop: shop, senderemail: ownermail, title:product_title, qty:qty, gcaptcha: gcaptcha, customer_subscribe : customer_subscribe }, cache: false, beforeSend: function() {}, success: function (data) { $('.nb-spinner').hide(); $('.submitReq.c-form__button span').show(); var redirectpage=""; // console.log($('.c-form_label')); $('#cspmodal input,#cspmodal textarea').val(' '); $('.c-form_label').after(' Success! request has been sent! '); $('.success-msg').delay(3000).fadeOut('slow'); setTimeout(function() { $('.success-msg').remove(); }, 3000); $('.csp-parent-wrapper').css("opacity","1"); setTimeout(function() { $('.c-form')[0].reset(); }, 3000); $('#cspphone').val(''); $('#cspmessage').val(''); $('#cspphone').val(''); // return false; setTimeout(function(){ $('#cspmodal .alert-success').remove(); $('#cspmodal').hide(); if(is_redirect=="1"){ redirect_page=redirect_page.trim(); if(redirect_page.length==0) { return false; } window.open(redirect_page,"_self"); } },2000); } }); }else{ return false; } }); } function setCookieCSP(name,value,exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); let expires = "; expires=" + d.toUTCString(); document.cookie = name + "=" + value + ";" + expires + "; path=/"; } function getCookieCSP(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookieCSP(name) { document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; } function checkPayemnt($){ var sb_payment_status_check = getCookieCSP('sb_payment_status_check_csp'); if(sb_payment_status_check == null){ $.ajax({ url: "https://setubridgeapps.com/coming-soon-product/app_csp/src/public/checkPaymentStatus", type: "GET", data: { shop:shop }, cache: false, success: function(response){ console.log('payment reaponse',response); if(response){ response = JSON.parse(response); if(response.result.status == "active"){ setCookieCSP('sb_payment_status_check_csp','active',1); myAppJavaScript_csp($); setTimeout(function(){ loadCSPEvents($); },2000); }else{ setCookieCSP('sb_payment_status_check_csp','not_set',1); } }else{ setCookieCSP('sb_payment_status_check_csp','not_set',1); } } }); } } Open Pickerbox × Welcome to Coming Soon Picker START PICKING × COPY CLIPBOARD Automatically Apply Classes Copy Back To Admin Re-Pick Element × Welcome to Coming soon Picker START PICKING × COPY CLIPBOARD Automatically Apply Classes Copy Back To Admin Re-Pick Element `; // $('body').after(elem_picker_controller); $(".elem_picker_savebar").show(); function getSelector(el,jQuery){ var $el = jQuery(el); var id = $el.attr("id"); if (id) { //"should" only be one of these if theres an ID return "#"+ id; } var selector = $el.parents() .map(function() { return this.tagName; }) .get().reverse().join(" "); if (selector) { selector += " "+ $el[0].nodeName; } var classNames = $el.attr("class"); if (classNames) { selector += "." + jQuery.trim(classNames).replace(/\s/gi, "."); } var name = $el.attr('name'); if (name) { selector += "[name='" + name + "']"; } if (!name){ var index = $el.index(); if (index) { index = index + 1; selector += ":nth-child(" + index + ")"; } } return selector; } const loadCssStyleScript = (random) => { var cssId = 'myCss'; // you could encode the css path itself to generate id.. if (!document.getElementById(cssId)) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = cssId; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = 'https://www.setubridgeapps.com/Element-Picker/dist/picker.min.css?'+random; link.media = 'all'; head.appendChild(link); } } $(document).on("click","#reset_eLem_picker",function() { picker(); for ( elem of selectedClass_Data) { $(elem).show(200); } selectedClass_Data=[]; $('.class_copy_codeblock').hide(600); }); $(document).on("click",".code_copy_btn",function() { var copied_data = $('.codeblock_content span').text(); var tempInput = document.createElement("input"); tempInput.style = "position: absolute; left: -1000px; top: -1000px"; tempInput.value = copied_data.trim(); document.body.appendChild(tempInput); tempInput.select(); document.execCommand("copy"); document.body.removeChild(tempInput); }); //https://www.setubridgeapps.com/Element-Picker/dist/picker.min.js // loadScript('', function () { // loadCssStyleScript("raq399"); // window.selectedClass_Data = []; // window.elem_picker = new Picker({ // elm: document.getElementsByTagName("body")[0], // mode: 'cover', // events: [{ // key: 'contextmenu', // fn(event) { // console.log('Diy contextmenu Event', event.target, event); // event.preventDefault(); // }, // }], // onInit() { // }, // onClick(event) { // var selected_tag = $(event.target).prop("tagName"); // selected_tag=selected_tag.toLowerCase(); // if(selected_tag!="img" && selected_tag!="head" && selected_tag!="body" && selected_tag!="html") { // var elem_selector = getSelector(event.target,$); // selectedClass_Data.push(elem_selector); // $(elem_selector).hide(); // $('.class_copy_codeblock').show(600); // } // $('.codeblock_content span').text(selectedClass_Data.toString()); // }, // onHover(event) { // }, // }); // }); // picker(); $('.elem_picker_savebar').show(); var codecopyBlock = ` Copy Class `; console.log("1111111111") $('body').after(codecopyBlock); $(document).on("click","#start_stop_eLem_picker",function() { var curr_control_event = $("#start_stop_eLem_picker").attr("data-curr-event"); console.log("curr_control_event",curr_control_event) if(curr_control_event=="stop") { console.log("off") window.elem_picker.off(); $(this).attr("data-curr-event","stop"); $(this).text("STOP PICKING"); $('.class_copy_codeblock').hide(600); } else { console.log("11111111111111") picker() $(this).attr("data-curr-event","start"); $('.class_copy_codeblock').hide(600); } }); $(document).on('click','.redirectadmin',function(){ redirectHref='https://'+shop+'/admin/apps/coming-soon-products-2' window.location.href =redirectHref; }) if (window.location.href.indexOf('#popup2') !== -1) { window.location.href = window.location.href.replace('#popup2','') } if (window.location.href.indexOf('#popup1') === -1) { window.location.href = window.location.href+'#popup1' } let locationwindow = window.location.href; let split =''; if(locationwindow.indexOf("#popup1") !== -1 ){ split = '/'; }else{ split = '?'; } let hrefArray = locationwindow.split(split); console.log("ssssss",hrefArray) for (const [key, value] of Object.entries(hrefArray)) { console.log(`${key}: ${value}`); if (`${value}` =='products'){ page='product' } else if(`${value}` =='collections') { page='collection' } else if(`${value}` =='search') { page= 'search' } else if(`${value}` == window.location.origin) { page= 'home' } } console.log(".....",page) loadCssStyleScript("raq399"); function picker() { //console.log("999999999999") loadScript('https://www.setubridgeapps.com/Element-Picker/dist/picker.min.js', function () { // var cssId = 'myCss'; // you could encode the css path itself to generate id.. // if (!document.getElementById(cssId)) // { // var head = document.getElementsByTagName('head')[0]; // var link = document.createElement('link'); // link.id = cssId; // link.rel = 'stylesheet'; // link.type = 'text/css'; // link.href = 'https://www.setubridgeapps.com/Element-Picker/dist/picker.min.css?'+"raq399"; // link.media = 'all'; // head.appendChild(link); // } window.selectedClass_Data = []; window.elem_picker = new Picker({ elm: document.getElementsByTagName("body")[0], mode: 'cover', events: [{ key: 'contextmenu', fn(event) { console.log('Diy contextmenu Event', event.target, event); event.preventDefault(); }, }], onInit() { }, onClick(event) { console.log("+++++++++++++++++++++++++onclick") // var selected_tag = $(event.target).prop("tagName"); // selected_tag=selected_tag.toLowerCase(); // if(selected_tag!="img" && selected_tag!="head" && selected_tag!="body" && selected_tag!="html") { // elem_selector = getSelector(event.target,$); // selectedClass_Data.push(elem_selector); // $(elem_selector).hide(); // //$('.class_copy_codeblock').show(600); // } // console.log("%%%%%",elem_selector); getDivLendth = event.path.length; /* get target div class */ for(i=0; i { $(this).html(' Copy'); }, 1400); console.log("111",elem_selector) var copied_data = elem_selector console.log("2222",copied_data) var tempInput = document.createElement("input"); tempInput.style = "position: absolute; left: -1000px; top: -1000px"; tempInput.value = copied_data.trim(); document.body.appendChild(tempInput); tempInput.select(); document.execCommand("copy"); document.body.removeChild(tempInput); }) // $('.codeblock_content span').text(selectedClass_Data.toString()); }, onHover(event) { }, }); }); } $(document).on('click','.direct_apply',function(){ page = `product`; directapply(); }) function directapply(){ console.log(page,shop,elem_selector); if (page !=''){ $.ajax({ url: "https://www.setubridgeapps.com/coming-soon-product/app/src/public/directPriceApply", type: "POST", //Use "PUT" for HTTP PUT methods data: { page :page, shop : shop, priceValue:elem_selector, }, }) .done (function(data,response, textStatus, jqXHR) { console.log("Success: " + response); window.location ='https://'+shop+'/admin/apps/coming-soon-products-2' }) } } }else{ $(".elem_picker_savebar").hide(); } } 