templates/index.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html dir="ltr" lang="en-US">
  3. <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5.     <meta name="author" content="SemiColonWeb" />
  6.     <!-- Stylesheets
  7.     ============================================= -->
  8.     <link href="https://fonts.googleapis.com/css?family=Lato:300,400,400i,700|Raleway:300,400,500,600,700|Crete+Round:400i" rel="stylesheet" type="text/css" />
  9.     <link rel="stylesheet" href="static/css/bootstrap.css" type="text/css" />
  10.     <link rel="stylesheet" href="static/style.css" type="text/css" />
  11.     <link rel="stylesheet" href="static/css/dark.css" type="text/css" />
  12.     <link rel="stylesheet" href="static/css/font-icons.css" type="text/css" />
  13.     <link rel="stylesheet" href="static/css/animate.css" type="text/css" />
  14.     <link rel="stylesheet" href="static/css/magnific-popup.css" type="text/css" />
  15.     <link rel="stylesheet" href="static/css/responsive.css" type="text/css" />
  16.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  17.     
  18.     <style>
  19.     #demo_screenshot_image {
  20.         overflow: scroll;
  21.     }
  22.     
  23.     #demo_screenshot_image.loading, #demo_screenshot_image.loaded {
  24.         position: relative;
  25.         display: block;
  26.         height: 500px;
  27.         text-align: center;
  28.     }
  29.     
  30.     
  31.     #demo_screenshot_image img {
  32.         max-width: 100%;
  33.     }
  34.     
  35.     
  36.     pre {
  37.     display: block;
  38.     padding: 9.5px;
  39.     margin: 0 0 10px;
  40.     font-size: 13px;
  41.     line-height: 1.42857143;
  42.     word-break: break-all;
  43.     word-wrap: break-word;
  44.     color: #333333;
  45.     background-color: #f5f5f5;
  46.     border: 1px solid #cccccc;
  47.     border-radius: 4px;
  48.     }
  49.     </style>
  50.     <!-- Document Title
  51.     ============================================= -->
  52.     <title>URL to screenshot - STAGING V2</title>
  53.     
  54. <!-- Global site tag (gtag.js) - Google Analytics -->
  55. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-60509693-3"></script>
  56. <script>
  57.   window.dataLayer = window.dataLayer || [];
  58.   function gtag(){dataLayer.push(arguments);}
  59.   gtag('js', new Date());
  60.   gtag('config', 'UA-60509693-3');
  61. </script>
  62. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/emailjs-com@2.3.2/dist/email.min.js"></script>
  63. <script type="text/javascript">
  64.    (function(){
  65.       emailjs.init("user_uwb2AkLgBoXMjJpHvg2kU");
  66.    })();
  67. </script>
  68. <!-- Start of Async Drift Code -->
  69. <script>
  70. "use strict";
  71. !function() {
  72.   var t = window.driftt = window.drift = window.driftt || [];
  73.   if (!t.init) {
  74.     if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));
  75.     t.invoked = !0, t.methods = [ "identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on" ], 
  76.     t.factory = function(e) {
  77.       return function() {
  78.         var n = Array.prototype.slice.call(arguments);
  79.         return n.unshift(e), t.push(n), t;
  80.       };
  81.     }, t.methods.forEach(function(e) {
  82.       t[e] = t.factory(e);
  83.     }), t.load = function(t) {
  84.       var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");
  85.       o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";
  86.       var i = document.getElementsByTagName("script")[0];
  87.       i.parentNode.insertBefore(o, i);
  88.     };
  89.   }
  90. }();
  91. drift.SNIPPET_VERSION = '0.3.1';
  92. drift.load('dik48att3r7c');
  93. </script>
  94. <!-- End of Async Drift Code -->
  95. </head>
  96. <body class="stretched">
  97.     <!-- Document Wrapper
  98.     ============================================= -->
  99.     <div id="wrapper" class="clearfix">
  100.         <!-- Header
  101.         ============================================= -->
  102.         <header id="header" class="sticky-header">
  103.             <div id="header-wrap">
  104.                 <div class="container clearfix">
  105.                     <div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
  106.                     <!-- Logo
  107.                     ============================================= -->
  108.                     <div id="logo">
  109.                         <a href="index.html" class="standard-logo" data-dark-logo="images/logo-dark.png"><img src="static/custom/logo.png" alt="Canvas Logo"></a>
  110.                         <a href="index.html" class="retina-logo" data-dark-logo="images/logo-dark@2x.png"><img src="static/custom/logo@2x.png" alt="Canvas Logo"></a>
  111.                     </div><!-- #logo end -->
  112.                     <!-- Primary Navigation
  113.                     ============================================= -->
  114.                     <nav id="primary-menu">
  115.                         <ul class="one-page-menu">
  116.                             <li class="current"><a href="#" data-href="#section-home"><div>Home</div></a></li>
  117.                             <li><a href="#" data-href="#section-features"><div>Features</div></a></li>
  118.                             <li><a href="#" data-href="#section-pricing"><div>Pricing</div></a></li>
  119.                             <li><a href="#" data-href="#section-docs"><div>Documentation</div></a></li>
  120.                             <li><a href="#" data-href="#section-faqs"><div>FAQs</div></a></li>
  121.                             <li><a href="#" data-href="#section-contact"><div>Contact</div></a></li>
  122.                             <li><a href="https://rapidapi.com/APILight/api/url-to-screenshot" target="_blank"><div>Subscribe</div></a></li>
  123.                         </ul>
  124.                     </nav><!-- #primary-menu end -->
  125.                 </div>
  126.             </div>
  127.         </header><!-- #header end -->
  128.         <!-- Content
  129.         ============================================= -->
  130.         <section id="content">
  131.             <div class="content-wrap">
  132.                 <div class="container clearfix">
  133.                     <div id="section-home" class="heading-block title-center nobottomborder page-section">
  134.                         <h1>Screenshot any website</h1>
  135.                         <span>Simple, scallable and customizable!</span>
  136.                     </div>
  137.                     <form id="demo_screenshot" action="" method="get" class="landing-wide-form clearfix">
  138.                         <div class="col_four_fifth nobottommargin">
  139.                             <h3>Try it now! Enter a url to take a screenshot.</h3>
  140.                         </div>
  141.                         <div class="col_four_fifth nobottommargin">
  142.                                 <input id="demo_screenshot_url" type="text" class="form-control form-control-lg not-dark" value="http://www.cnbc.com" placeholder="http://www.website.com">
  143.                         </div>
  144.                         <div class="col_one_fifth col_last nobottommargin">
  145.                             <button class="btn btn-lg btn-danger btn-block nomargin" value="submit" type="submit" style="">Capture</button>
  146.                         </div>
  147.                     </form>
  148.                     <div class="clear"></div>
  149.                     <div id="demo_screenshot_image" class="col_two_third topmargin nobottommargin">
  150.                         <img src="static/cnbc.png"/>
  151.                     </div>
  152.                     <div class="col_one_third topmargin nobottommargin col_last">
  153.                         <h3>Screenshots as a Service</h3>
  154.                         <!--<p>Associating screenshots to urls greatly enhances your website's visual aspect and user engagement. Get the screenshot service your users deserve!</p>-->
  155.                         <p>Capturing a screenshot is easy. Automatically capturing screenshots that really look like the target website is much more difficult.</p>
  156.                         <p><b>Focus on your website and let us do the heavy lifting.</b></p>
  157.                         <div class="divider divider-short"><i class="icon-circle"></i></div>
  158.                         <ul class="iconlist iconlist-large iconlist-color">
  159.                             <li><i class="icon-ok-sign"></i> Choose the screenshot resolution</li>
  160.                             <li><i class="icon-ok-sign"></i> Emulate mobile devices</li>
  161.                             <li><i class="icon-ok-sign"></i> Lazy Loading supported</li>
  162.                             <li><i class="icon-ok-sign"></i> Cloud hosted backend</li>
  163.                             <li><i class="icon-ok-sign"></i> Available on <a href="https://rapidapi.com/APILight/api/url-to-screenshot" target="_blank">RapidAPI</a></li>
  164.                             <li><i class="icon-ok-sign"></i> Need help? Want more? <a href="#section-contact">We are here for you!</a></li>
  165.                             <li><i class="icon-ok-sign"></i> Try us with 1000 <strong>FREE</strong> requests!</li>
  166.                         </ul>
  167.                     </div>
  168.                     <div class="clear"></div>
  169.                     <div class="divider divider-short divider-center"><i class="icon-circle"></i></div>
  170.                     <div id="section-features" class="heading-block title-center page-section">
  171.                         <h2>Features Overview</h2>
  172.                     </div>
  173.                     <div class="col_one_third">
  174.                         <div class="feature-box fbox-plain">
  175.                             <div class="fbox-icon" data-animate="bounceIn">
  176.                                 <a href="#"><img src="static/images/icons/features/tools.png" alt="Fully customizable"></a>
  177.                             </div>
  178.                             <h3>Customizable</h3>
  179.                             <p>Our API allows you to set your own screen resolution and allocated time. You can also capture a complete webpage.</p>
  180.                         </div>
  181.                     </div>
  182.                     <div class="col_one_third">
  183.                         <div class="feature-box fbox-plain">
  184.                             <div class="fbox-icon" data-animate="bounceIn" data-delay="200">
  185.                                 <a href="#"><img src="static/images/icons/features/retina.png" alt="Pixel perfect screenshots"></a>
  186.                             </div>
  187.                             <h3>Pixel perfect</h3>
  188.                             <p>Screenshots are not compressed (PNG format), allowing your users to get great quality previews.</p>
  189.                         </div>
  190.                     </div>
  191.                     <div class="col_one_third col_last">
  192.                         <div class="feature-box fbox-plain">
  193.                             <div class="fbox-icon" data-animate="bounceIn" data-delay="400">
  194.                                 <a href="#"><img src="static/images/icons/features/performance.png" alt="Scalable"></a>
  195.                             </div>
  196.                             <h3>Fully scalable</h3>
  197.                             <p>Our backend is optimized, hosted on the cloud and able to withstand a large number of requests.</p>
  198.                         </div>
  199.                     </div>
  200.                     <div class="clear"></div>
  201.                     <div class="col_one_third">
  202.                         <div class="feature-box fbox-plain">
  203.                             <div class="fbox-icon" data-animate="bounceIn" data-delay="600">
  204.                                 <a href="#"><img src="static/images/icons/features/tick.png" alt="Retina Graphics"></a>
  205.                             </div>
  206.                             <h3>Lazy loading supported</h3>
  207.                             <p>Images and animations loaded when the user scroll over them will be correctly displayed.</p>
  208.                         </div>
  209.                     </div>
  210.                     <div class="col_one_third">
  211.                         <div class="feature-box fbox-plain">
  212.                             <div class="fbox-icon" data-animate="bounceIn" data-delay="800">
  213.                                 <a href="#"><img src="static/images/icons/features/responsive.png" alt="Mobile device emulation"></a>
  214.                             </div>
  215.                             <h3>Mobile device emulation</h3>
  216.                             <p>We are able to emulate mobile devices so you can easily get snapshots of mobile websites.</p>
  217.                         </div>
  218.                     </div>
  219.                     
  220.                     <div class="col_one_third col_last">
  221.                         <div class="feature-box fbox-plain">
  222.                             <div class="fbox-icon" data-animate="bounceIn" data-delay="1000">
  223.                                 <a href="#"><img src="static/images/icons/features/support.png" alt="World-class support"></a>
  224.                             </div>
  225.                             <h3>World-class support</h3>
  226.                             <p>Need help? Miss a feature? Contact us and we will do our best to meet your requirements!</p>
  227.                         </div>
  228.                     </div>
  229.                     
  230.                     <div class="clear"></div>
  231.                     <div class="divider divider-short divider-center"><i class="icon-circle"></i></div>
  232.                     <div id="section-pricing" class="heading-block title-center page-section">
  233.                         <h2>A clear pricing</h2>
  234.                     </div>
  235.                     <div class="row pricing bottommargin clearfix">
  236.                         <div class="col-lg-3" data-animate="fadeInLeft">
  237.                             <div class="pricing-box">
  238.                                 <div class="pricing-title">
  239.                                     <h3>Basic</h3>
  240.                                 </div>
  241.                                 <div class="pricing-price">
  242.                                     Free!
  243.                                 </div>
  244.                                 <div class="pricing-features">
  245.                                     <ul>
  246.                                         <li><strong>1000</strong> requests / month</li>
  247.                                         <li>then $0.004 each</li>
  248.                                         <li>Email Support</li>
  249.                                     </ul>
  250.                                 </div>
  251.                                 <div class="pricing-action">
  252.                                     <a href="https://rapidapi.com/APILight/api/url-to-screenshot/pricing" target="_blank" class="btn btn-danger btn-block btn-lg">Sign Up</a>
  253.                                 </div>
  254.                             </div>
  255.                         </div>
  256.                         <div class="col-lg-3" data-animate="fadeInDown"  data-delay="250">
  257.                             <div class="pricing-box">
  258.                                 <div class="pricing-title">
  259.                                     <h3>Professional</h3>
  260.                                 </div>
  261.                                 <div class="pricing-price">
  262.                                     <span class="price-unit">$</span>9.99<span class="price-tenure">/mo</span>
  263.                                 </div>
  264.                                 <div class="pricing-features">
  265.                                     <ul>
  266.                                         <li><strong>5000</strong> requests / month</li>
  267.                                         <li>then $0.003 each</li>
  268.                                         <li>Email Support</li>
  269.                                     </ul>
  270.                                 </div>
  271.                                 <div class="pricing-action">
  272.                                     <a href="https://rapidapi.com/APILight/api/url-to-screenshot/pricing" target="_blank" class="btn btn-danger btn-block btn-lg bgcolor border-color">Sign Up</a>
  273.                                 </div>
  274.                             </div>
  275.                         </div>
  276.                         <div class="col-lg-3" data-animate="fadeInUp" data-delay="500">
  277.                             <div class="pricing-box best-price">
  278.                                 <div class="pricing-title">
  279.                                     <h3>ULTRA</h3>
  280.                                     <span>Most Popular</span>
  281.                                 </div>
  282.                                 <div class="pricing-price">
  283.                                     <span class="price-unit">$</span>49.99<span class="price-tenure">/mo</span>
  284.                                 </div>
  285.                                 <div class="pricing-features">
  286.                                     <ul>
  287.                                         <li><strong>30000</strong> requests / month</li>
  288.                                         <li>then $0.003 each</li>
  289.                                         <li>Email Support</li>
  290.                                     </ul>
  291.                                 </div>
  292.                                 <div class="pricing-action">
  293.                                     <a href="https://rapidapi.com/APILight/api/url-to-screenshot/pricing" target="_blank" class="btn btn-danger btn-block btn-lg">Sign Up</a>
  294.                                 </div>
  295.                             </div>
  296.                         </div>
  297.                         <div class="col-lg-3" data-animate="fadeInRight" data-delay="250">
  298.                             <div class="pricing-box">
  299.                                 <div class="pricing-title">
  300.                                     <h3>Mega</h3>
  301.                                 </div>
  302.                                 <div class="pricing-price">
  303.                                     <span class="price-unit">$</span>99.99<span class="price-tenure">/mo</span>
  304.                                 </div>
  305.                                 <div class="pricing-features">
  306.                                     <ul>
  307.                                         <li><strong>100000</strong> requests / month</li>
  308.                                         <li>then $0.002 each</li>
  309.                                         <li>Email Support</li>
  310.                                     </ul>
  311.                                 </div>
  312.                                 <div class="pricing-action">
  313.                                     <a href="https://rapidapi.com/APILight/api/url-to-screenshot/pricing" target="_blank" class="btn btn-danger btn-block btn-lg">Sign Up</a>
  314.                                 </div>
  315.                             </div>
  316.                         </div>
  317.                     </div>
  318.                     
  319.                     <div class="center">
  320.                         <a href="https://rapidapi.com/apilight/api/url-to-screenshot" target="_blank">
  321.                             <img src="static/connect-on-rapidapi-light.png" width="215" alt="Connect on RapidAPI">
  322.                         </a>
  323.                     </div>
  324.                     
  325.                     
  326.                     
  327.                     <div class="clear"></div>
  328.                     <div class="divider divider-short divider-center"><i class="icon-circle"></i></div>
  329.                     <div id="section-docs" class="heading-block title-center page-section">
  330.                         <h2>Documentation</h2>
  331.                     </div>
  332.                     
  333.                     <div class="col_one_fifth">
  334.                     
  335.                     </div>
  336.                     <div class="col_three_fifth" style="font-size: 16px;">
  337.                     <p>Our REST API is simple and intuitive. We have at the moment one API endpoint, <b><i>get</i></b>, that returns a PNG screenshot and takes the following five parameters:</p>
  338.                     <ul>
  339.                             
  340.                         <li><b>url</b>: The url of the webpage.</li>
  341.                         <li><b>width</b>: Width of the screen in px.</li>
  342.                         <li><b>height</b>: Height of the screen in px. Set to -1 if you want to capture the whole webpage.</li>
  343.                         <li><b>time_allocated</b>: Time in seconds allocated for loading the webpage.</li>
  344.                         <li><b>base64</b>: If set true, returns the PNG image encoded in base64.</li>
  345.                     </ul>
  346.                     <p>
  347.                         You can test those parameters, subscribe and get an SDK in a pletora of different languages directly in our <a href="https://rapidapi.com/apilight/api/url-to-screenshot" target="_blank">RapidAPI webpage</a>.
  348.                     </p>
  349.                     </div>
  350.                     <div class="col_one_fifth">
  351.                     
  352.                     </div>
  353.                     <div class="divider divider-short divider-center"><i class="icon-circle"></i></div>
  354.                     <div id="section-faqs" class="heading-block title-center page-section">
  355.                         <h2>Frequently Asked Questions</h2>
  356.                         <span>We have answered a wide range of Questions for your Convenience</span>
  357.                     </div>
  358.                     <div class="col_half nobottommargin">
  359.                         <h4 id="faq-3"><strong>Q.</strong> How can I access the API?</h4>
  360.                         <p>Our API is available on <a href="https://rapidapi.com/apilight/api/url-to-screenshot" target="_blank">RapidAPI</a>. Create an account there and you should be good to go!</p>
  361.                         <div class="line"></div>
  362.                         <h4 id="faq-2"><strong>Q.</strong> Is there a contract involved?</h4>
  363.                         <p>No, UrlToScreenshot is a subscription-based service with no contracts. Once your free requests have been used, you either pay a very small fee for each additional request, or you can subscribe for getting a better deal.</p>
  364.                         <div class="line"></div>
  365.                         
  366.                         <h4 id="faq-5"><strong>Q.</strong> I have done a mistake and sent too many requests!</h4>
  367.                         <p><a href="#section-contact" target="_blank">Contact us</a>, we will figure something out.</p>
  368.                         <div class="line"></div>
  369.                         
  370.                         <h4 id="faq-1"><strong>Q.</strong> Do you add watermarks on snapshots?</h4>
  371.                         <p>No we don't, and that is the case for those in the free plan too.</p>
  372.                     </div>
  373.                     <div class="col_half nobottommargin col_last">
  374.                         <h4 id="faq-6"><strong>Q.</strong> I miss some features. Can you help?</h4>
  375.                         <p>Yes, don't hesitate to <a href="#section-contact" target="_blank">contact us</a>, we will do our best to inform you and meet your requirements.</p>
  376.                         <div class="line"></div>
  377.                         
  378.                         <h4 id="faq-7"><strong>Q.</strong> Do you follow redirects?</h4>
  379.                         <p>Yes!</p>
  380.                         <div class="line"></div>
  381.                         <h4 id="faq-9"><strong>Q.</strong> I want to partner.</h4>
  382.                         <p>We are open to partnerships, <a href="#section-contact" target="_blank">contact us</a>!</p>
  383.                         
  384.                         <div class="line"></div>
  385.                         <h4 id="faq-10"><strong>Q.</strong> Can I download and cache the screenshots you provide?</h4>
  386.                         <p>Yes you can, you are even encouraged to do so!</p>
  387.                     </div>
  388.                     <div class="clear"></div>
  389.                     <div class="divider divider-short divider-center"><i class="icon-circle"></i></div>
  390.                     <div id="section-contact" class="heading-block title-center page-section">
  391.                         <h2>Get in Touch with us</h2>
  392.                         <span>Still have Questions? Miss a feature? Contact Us using the Form below</span>
  393.                     </div>
  394.                     <!-- Contact Form
  395.                     ============================================= -->
  396.                     <div>
  397.                         <div class="fancy-title title-dotted-border">
  398.                             <h3>Send us an Email</h3>
  399.                         </div>
  400.                         <div class="form-widget">
  401.                             <div class="form-result"></div>
  402.                             <form class="nobottommargin" id="contactform" name="template-contactform" action="include/form.php" method="post">
  403.                                 <div class="form-process"></div>
  404.                                 <div class="col_one_third">
  405.                                     <label for="template-contactform-name">Name <small>*</small></label>
  406.                                     <input type="text" id="template-contactform-name" name="name" value="" class="sm-form-control required" />
  407.                                 </div>
  408.                                 <div class="col_one_third">
  409.                                     <label for="template-contactform-email">Email <small>*</small></label>
  410.                                     <input type="email" id="template-contactform-email" name="email" value="" class="required email sm-form-control" />
  411.                                 </div>
  412.                                 <div class="col_one_third col_last">
  413.                                     <label for="template-contactform-phone">Phone</label>
  414.                                     <input type="text" id="template-contactform-phone" name="phone" value="" class="sm-form-control" />
  415.                                 </div>
  416.                                 <div class="clear"></div>
  417.                                 <div>
  418.                                     <label for="template-contactform-subject">Subject <small>*</small></label>
  419.                                     <input type="text" id="template-contactform-subject" name="subject" value="" class="required sm-form-control" />
  420.                                 </div>
  421.                                 <div class="clear"></div>
  422.                                 <div class="col_full">
  423.                                     <label for="template-contactform-message">Message <small>*</small></label>
  424.                                     <textarea class="required sm-form-control" id="message" name="message" rows="6" cols="30"></textarea>
  425.                                 </div>
  426.                                 <div class="col_full hidden">
  427.                                     <input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" />
  428.                                 </div>
  429.                                 <div class="col_full">
  430.                                     <button class="button button-3d nomargin" type="submit" id="template-contactform-submit" name="template-contactform-submit" value="submit">Send Message</button>
  431.                                 </div>
  432.                                 <input type="hidden" name="prefix" value="template-contactform-">
  433.                             </form>
  434.                         </div>
  435.                     </div><!-- Contact Form End -->
  436.                 </div>
  437.                 <div id="section-buy" class="section page-section footer-stick">
  438.                     <div class="container clearfix">
  439.                         <div class="heading-block title-center nobottomborder">
  440.                             <h2>Enough? Start Building!</h2>
  441.                         </div>
  442.                         <div class="center">
  443.                             <a href="https://rapidapi.com/apilight/api/url-to-screenshot" target="_blank">
  444.                                 <img src="static/connect-on-rapidapi-light.png" width="215" alt="Connect on RapidAPI">
  445.                             </a>
  446.                         </div>
  447.                     </div>
  448.                 </div>
  449.             </div>
  450.         </section><!-- #content end -->
  451.         <!-- Footer
  452.         ============================================= -->
  453.         <footer id="footer" class="dark">
  454.             <!-- Copyrights
  455.             ============================================= -->
  456.             <div id="copyrights">
  457.                 <div class="container clearfix">
  458.                     <div class="col_half">
  459.                         Copyrights &copy; 2020 All Rights Reserved by URLtoScreenshot.com<br>
  460.                     </div>
  461.                 </div>
  462.             </div><!-- #copyrights end -->
  463.         </footer><!-- #footer end -->
  464.     </div><!-- #wrapper end -->
  465.     <!-- Go To Top
  466.     ============================================= -->
  467.     <div id="gotoTop" class="icon-angle-up"></div>
  468.     <!-- External JavaScripts
  469.     ============================================= -->
  470.     <script src="static/js/jquery.js"></script>
  471.     <script src="static/js/plugins.js"></script>
  472.     <!-- Footer Scripts
  473.     ============================================= -->
  474.     <script src="static/js/functions.js"></script>
  475.     <script src="static/js/jquery.gmap.js"></script>
  476.     <script>
  477.         
  478.         var $spinner = $('<div class="css3-spinner infinite-scroll-request" style="display: block;"><div class="css3-spinner-ball-pulse-sync"><div></div><div></div><div></div></div></div>');
  479.         
  480.         
  481.         jQuery('#demo_screenshot').submit(function() {
  482.             var $demo = $('#demo_screenshot_image');
  483.             $demo.empty();
  484.             $demo.append($spinner);
  485.             $demo.removeClass('loaded');
  486.             $demo.addClass('loading');
  487.             var url = $('#demo_screenshot_url').val();
  488.             
  489.             jQuery.ajax({
  490.                 url: "https://api.apilight.com/screenshot/get",
  491.                 data: {'url': url, 'base64': 1, width: 1366, height: 1024},
  492.                 type: "GET",
  493.                 dataType: 'text',
  494.                 beforeSend: function(xhr){xhr.setRequestHeader('x-api-key', 'j1gIaMwfU545P2ymFWA0gan7yHr7Yla05CJnMheL');},
  495.                 success: function(data) {                    
  496.                     $demo.removeClass('loading');
  497.                     $demo.addClass('loaded');
  498.                     var $img = $('<img></img>');
  499.                     $img.attr('src', 'data:image/png;base64, ' + data);
  500.                     $demo.empty();
  501.                     $demo.append($img);
  502.                     console.log($img);
  503.                }
  504.             });
  505.             
  506.             
  507.             return false;
  508.         });
  509.         
  510.         var myform = $("form#contactform");
  511.         myform.submit(function(event){
  512.         event.preventDefault();
  513.           // Change to your service ID, or keep using the default service
  514.           var service_id = "default_service";
  515.           var template_id = "contact_urltoscreenshot";
  516.           myform.find("button").text("Sending...");
  517.           emailjs.sendForm(service_id,template_id,myform[0])
  518.           .then(function(){
  519.             alert("Sent!");
  520.                myform.find("button").text("Your message has been sent, thank you!");
  521.             }, function(err) {
  522.                alert("Failed!\r\n Response:\n " + JSON.stringify(err));
  523.                myform.find("button").text("Send");
  524.             });
  525.           return false;
  526.         });
  527.     </script>
  528. </body>
  529. </html>