Advertisement
Guest User

HtmlUnitDriver_HtmlUnit

a guest
Oct 29th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.33 KB | None | 0 0
  1. <html class="no-js">
  2. <head>
  3. <meta charset="UTF-8"/>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  5. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
  6. <meta name="description" content="AMZScout is an Instant Amazon sales tracker &amp; sales rank tool which have enhance features to get complete insight about any product. Download web app or chrome Ext Now."/>
  7. <meta name="keywords" content="Amazon Sales Estimator, Sales Estimator, Amazon Estimated Sales"/>
  8. <meta property="og:locale" content="en_US"/>
  9. <meta property="og:type" content="website"/>
  10. <meta property="og:title" content="Amazon Sales Estimator at AMZScout"/>
  11. <meta property="og:description" content="Know your competitors sales in one click with AMZScout"/>
  12. <meta property="og:url" content="https://amzscout.net/sales-estimator"/>
  13. <meta property="og:site_name" content="Know your competitors sales in one click!"/>
  14. <meta property="og:image" content="/img/icon-fb.png"/>
  15. <meta property="og:image:width" content="1000"/>
  16. <meta property="og:image:height" content="700"/>
  17. <meta name="twitter:description" content="Know your competitors sales in one click with AMZScout&amp; estimates, and more."/>
  18. <meta name="twitter:title" content="Amazon Sales Estimator at AMZScout"/>
  19. <meta name="twitter:image" content="/img/icon-fb.png"/>
  20. <title>
  21. Amazon Products Sales History Estimator, Rank Calculator | AMZScout
  22. </title>
  23. <link rel="apple-touch-icon" href="/favicon/apple-touch-icon.png?v=7"/>
  24. <link rel="apple-touch-icon-precomposed" href="/favicon/apple-touch-icon-precomposed.png?v=7"/>
  25. <link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png?v=7"/>
  26. <link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png?v=7"/>
  27. <link rel="manifest" href="/favicon/manifest.json?v=7"/>
  28. <link rel="mask-icon" href="/favicon/safari-pinned-tab.svg?v=7" color="#ff8e12"/>
  29. <link rel="shortcut icon" href="/favicon/favicon.ico?v=7"/>
  30. <meta name="msapplication-TileColor" content="#da532c"/>
  31. <meta name="msapplication-TileImage" content="/favicon/mstile-144x144.png?v=7"/>
  32. <meta name="msapplication-config" content="/favicon/browserconfig.xml?v=7"/>
  33. <meta name="theme-color" content="#ffffff"/>
  34. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i&amp;subset=cyrillic" rel="stylesheet"/>
  35. <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,600,600i,700,700i,900,900i" rel="stylesheet"/>
  36. <link rel="stylesheet" href="/css/common.css"/>
  37. </head>
  38. <body>
  39. ?
  40. <!-- Google Tag Manager --> <script>
  41. //<![CDATA[
  42. (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  43. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  44. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  45. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  46. })(window,document,'script','dataLayer','GTM-KRBRKMP');
  47. //]]>
  48. </script>
  49. <!-- End Google Tag Manager --> <header class="l-header">
  50. <div class="container">
  51. <div class="l-header__logo">
  52. <img src="/img/logo.svg" alt="AMZScout Logo" width="128"/>
  53. </div>
  54. <div class="l-header__nav">
  55. <nav class="nav-bar" role="navigation">
  56. <input id="main-menu-state" type="checkbox" value="on"/>
  57. <label class="main-menu-btn" for="main-menu-state">
  58. <span class="main-menu-btn-icon">
  59. </span>
  60. Toggle main menu visibility
  61.  
  62. </label>
  63. <ul id="main-menu" class="sm sm-clean">
  64. <li>
  65. <a href="/" data-event-category="Extension" data-event-label="Menu" data-event-action="Home">
  66. Home
  67. </a>
  68. </li>
  69. <li>
  70. <a href="/web-app" data-event-category="Extension" data-event-action="Web app" data-event-label="Menu">
  71. Web App
  72. </a>
  73. </li>
  74. <li>
  75. <a href="/app/#/database" data-event-category="Extension" data-event-label="Menu" data-event-action="Web App">
  76. Product Database
  77. </a>
  78. </li>
  79. <li>
  80. <a id="menu-activate" href="javascript:void(0)">
  81. Free Tools
  82. </a>
  83. <ul>
  84. <li>
  85. <a class="active" href="/sales-estimator" data-event-category="Extension" data-event-label="Menu" data-event-action="Estimator">
  86. Sales Estimator
  87. </a>
  88. </li>
  89. <li>
  90. <a href="/fba-fee-calculator" data-event-category="Extension" data-event-action="Calculator" data-event-label="Menu">
  91. FBA Fee Calculator
  92. </a>
  93. </li>
  94. <li>
  95. <a href="https://chrome.google.com/webstore/detail/liobflkelkokkacdemhmgkbpefgaekkm" data-event-category="Extension" data-event-action="Stock Stats" data-event-label="Menu">
  96. Amazon Inventory Spy
  97. </a>
  98. </li>
  99. <li>
  100. <a href="https://chrome.google.com/webstore/detail/efnofdephleclibibhlfpklcopmlejhd" data-event-category="Extension" data-event-action="Smart Shopper" data-event-label="Menu">
  101. Amazon to eBay Price Comparator
  102. </a>
  103. </li>
  104. </ul>
  105. </li>
  106. <li style="position: absolute;top: -60px">
  107. <a href="/junglescout">
  108. Jungle Scout vs. AMZScout
  109. </a>
  110. </li>
  111. <li>
  112. <a href="http://blog.amzscout.net/" rel="noopener noreferrer" target="_blank" data-event-category="Extension" data-event-label="Menu" data-event-action="Blog">
  113. Blog
  114. </a>
  115. </li>
  116. <li>
  117. <a href="https://amzscout.zendesk.com/hc/en-us" target="_blank" data-event-category="Extension" data-event-label="Menu" data-event-action="Help">
  118. Help
  119. </a>
  120. </li>
  121. </ul>
  122. </nav>
  123. </div>
  124. <nav class="l-header__user">
  125. <a href="/app/" class="btn btn--transparent btn--small" data-event-category="Sales Estimator" data-event-action="Sign in">
  126. Sign in
  127. </a>
  128. <a href="/app/#/signup" class="btn btn--dark-blue btn--small" data-event-category="Sales Estimator" data-event-action="Sign up">
  129. Sign up
  130. </a>
  131. </nav>
  132. </div>
  133. </header>
  134. <div class="main">
  135. <h1 class="hidden_h1">
  136. We Have Carefully Collected
  137. </h1>
  138. <div class="cat-lead">
  139. <div class="container">
  140. <div class="cat-lead_head">
  141.  
  142. We Have Carefully
  143. <span class="cat-lead_head-nbsp">
  144.  
  145. </span>
  146. Collected
  147.  
  148. </div>
  149. <div class="cat-lead_post-head">
  150. </div>
  151. <div class="cat-lead_text">
  152. <b>
  153. ALL DATA ON AVERAGE SALES
  154. </b>
  155. <br/>
  156. <br/>
  157. <br/>
  158.  
  159. Just choose the required category
  160.  
  161. </div>
  162. </div>
  163. </div>
  164. <div class="cat-pick">
  165. <div class="container">
  166. <div class="cat-pick_head">
  167. <div class="cat-pick_title">
  168.  
  169. Pick a Category
  170.  
  171. </div>
  172. <div class="cat-pick_country">
  173. <div class="cat-pick_country-head">
  174.  
  175. Select Country
  176.  
  177. </div>
  178. <div class="cat-pick_country-select">
  179. <select id="domain" class="ui-select">
  180. <option value="COM" selected="selected">
  181. US
  182. </option>
  183. <option value="CO_UK">
  184. UK
  185. </option>
  186. <option value="CA">
  187. CA
  188. </option>
  189. <option value="DE">
  190. DE
  191. </option>
  192. <option value="FR">
  193. FR
  194. </option>
  195. <option value="ES">
  196. ES
  197. </option>
  198. <option value="IT">
  199. IT
  200. </option>
  201. <!--<option value="COM_MX">MX</option>--> </select>
  202. </div>
  203. </div>
  204. </div>
  205. <div class="cat-pick_list">
  206. </div>
  207. </div>
  208. </div>
  209. <div class="cat-rank" style="display: none;">
  210. <div class="container">
  211. <div class="cat-rank_head">
  212.  
  213. Average Sales for Category
  214.  
  215. </div>
  216. <div class="cat-rank_block">
  217. <div class="cat-rank_i cat-rank_cat">
  218. <div class="cat-rank_i-head">
  219.  
  220. Category
  221.  
  222. </div>
  223. <div class="cat-pick_list">
  224. </div>
  225. <div class="cat-rank_another">
  226. <span class="cat-rank_another-link">
  227.  
  228. Choose another category
  229.  
  230. </span>
  231. </div>
  232. </div>
  233. <div class="cat-rank_i cat-rank_rank">
  234. <div class="cat-rank_i-head">
  235.  
  236. Sales Rank
  237.  
  238. </div>
  239. <div class="cat-rank_val">
  240. <input type="text" class="form-control cat-rank_input js-disable"/>
  241. </div>
  242. <div class="cat-rank_calc">
  243. <button class="cat-rank_submit btn js-disable" onclick="getEstSales()" type="button">
  244. Calculate sales
  245. </button>
  246. </div>
  247. </div>
  248. <div class="cat-rank_i cat-rank_sales">
  249. <div class="cat-rank_sales-val">
  250. ?
  251. </div>
  252. <div class="cat-rank_sales-period">
  253.  
  254. Sales per month
  255.  
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="cat-more">
  262. <div class="container">
  263. <div class="cat-more_block">
  264. <div class="cat-more_img">
  265. <img src="/img/start-trial-img.png"/>
  266. </div>
  267. <div class="cat-more_cont">
  268. <div class="cat-more_head">
  269.  
  270. Want to get more data about a product?
  271.  
  272. </div>
  273. <a href="javascript:onBottomBannerClick()" class="cat-more-btn">
  274. <span class="cat-more-btn_trial">
  275. <span class="cat-more-btn_date">
  276.  
  277. 7 days
  278.  
  279. </span>
  280. <span class="cat-more-btn_free">
  281.  
  282. Free trial
  283.  
  284. </span>
  285. </span>
  286. <span class="cat-more-btn_start">
  287.  
  288. Start an AMZScout trial
  289.  
  290. </span>
  291. </a>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. <section class="l-footer">
  298. <div class="container">
  299. <div class="l-footer__top">
  300. <div class="l-footer__logo">
  301. <img src="/img/logo.svg" alt="logo" width="250"/>
  302. </div>
  303. <h3>
  304. Launch your profitable product on Amazon
  305. <small>
  306. with instant access to full sales data
  307. </small>
  308. </h3>
  309. </div>
  310. <div class="l-footer__bottom">
  311. <a href="https://amzscout.idevaffiliate.com" target="_blank" data-event-category="Sales Estimator" data-event-label="Menu" data-event-action="Affiliate program">
  312. Affiliate Program
  313. </a>
  314. </div>
  315. <div class="l-footer__bottom">
  316. <p class="copyright">
  317. <a href="/docs/public-offer.pdf">
  318. Public Offer
  319. </a>
  320. </p>
  321. <p class="copyright">
  322. <a href="/docs/security-policy.pdf">
  323. Security Policy
  324. </a>
  325. </p>
  326. <p class="copyright">
  327. <a href="/docs/terms-of-use.pdf">
  328. Terms of Use
  329. </a>
  330. </p>
  331. <div class="footer-social">
  332. <span>
  333. Have any questions? Feel free to contacts us.
  334. </span>
  335. <a href="https://vk.com/amzscout" class="btn btn--dark-blue btn--square">
  336. <i class="i-vk">
  337. </i>
  338. </a>
  339. <a href="https://www.facebook.com/amzscoutcrew" class="btn btn--dark-blue btn--square">
  340. <i class="i-facebook">
  341. </i>
  342. </a>
  343. <a href="https://twitter.com/AmzScout" class="btn btn--dark-blue btn--square">
  344. <i class="i-twitter">
  345. </i>
  346. </a>
  347. </div>
  348. <a href="#contacts" class="footer-cont-link fancy-inline">
  349. Contacts
  350. </a>
  351. </div>
  352. <p class="l-footer__copyright">
  353. © AMZScout. All rights reserved
  354. </p>
  355. </div>
  356. </section>
  357. <div id="popup" class="popup-first" style="display: none;">
  358. <div class="popup-first__container">
  359. <div id="popupSelf" class="popup-first__background">
  360. <div class="popup-first__image">
  361. </div>
  362. <div class="popup-first__content">
  363. <div class="popup-first__title">
  364. Tired of Product Research Routine?
  365. </div>
  366. <div class="popup-first__text">
  367.  
  368. Get 10 hot-selling low-competition products on Amazon.
  369.  
  370. <br/>
  371.  
  372. Start selling while they make from $3K/month.
  373.  
  374. <br/>
  375.  
  376. The list is FREE now but it will be gone soon.
  377.  
  378. </div>
  379. <form class="popup-first__form" id="popupForm">
  380. <label for="popupEmail" class="popup-first__form-title">
  381. Enter your email
  382. </label>
  383. <input id="popupEmail" type="email" required="" class="popup-firts__input"/>
  384. <button type="submit" class="btn btn--small popup-first__send-btn">
  385. Send me 10 Niche Ideas Now!
  386. </button>
  387. </form>
  388. <div class="popup-first__close" id="popupClose">
  389. No, thanks, I found lots of them myself
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </div>
  395. <div id="contacts" class="contacts" style="display: none">
  396. <h2>
  397. Contacts
  398. </h2>
  399. <p>
  400.  
  401. AMZscout Corp.
  402.  
  403. <br/>
  404.  
  405. Registered Office: 1735 Market Street,
  406.  
  407. <br/>
  408.  
  409. Suite 3750
  410.  
  411. <br/>
  412.  
  413. Philadelphia, PA 19103
  414.  
  415. <br/>
  416.  
  417. USA
  418.  
  419. </p>
  420. <p>
  421.  
  422. Tel:
  423.  
  424. <script>
  425. //<![CDATA[
  426. document.write(atob("KzEgOTA4IDQyOCA0OTIx"))
  427. //]]>
  428. </script>
  429. <br/>
  430.  
  431. WhatsApp:
  432.  
  433. <script>
  434. //<![CDATA[
  435. document.write(atob("KzcgOTE2IDQwOCAzNjcy"))
  436. //]]>
  437. </script>
  438. <br/>
  439.  
  440. E-mail:
  441.  
  442. <script>
  443. //<![CDATA[
  444. document.write(atob("PGEgaHJlZj0ibWFpbHRvOnN1cHBvcnRAYW16c2NvdXQubmV0Ij5zdXBwb3J0QGFtenNjb3V0Lm5ldDwvYT4="))
  445. //]]>
  446. </script>
  447. </p>
  448. </div>
  449. <div class="modal hide" id="modal-sales-rank" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  450. <div class="modal-dialog modal-sales-rank">
  451. <div class="container">
  452. <div class="cat-sales-rank">
  453. <div class="cat-sales-rank_head">
  454.  
  455. Enter sales rank for selected category
  456.  
  457. </div>
  458. <div class="cat-sales-rank_val">
  459. <input type="text" class="form-control"/>
  460. </div>
  461. <div class="cat-sales-rank_text">
  462.  
  463. Estimates based on actual data per month
  464.  
  465. </div>
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. <script type="application/ld+json">
  471. //<![CDATA[
  472.  
  473. {
  474. "@context": "http://schema.org/",
  475. "@type": "Product",
  476. "name": "AMZScout Sales Estimator",
  477. "image": "",
  478. "brand": "AMZScout",
  479. "aggregateRating": {
  480. "@type": "AggregateRating",
  481. "ratingValue": "4.7",
  482. "bestRating": "5",
  483. "worstRating": "1",
  484. "ratingCount": "231"
  485. }
  486. }
  487.  
  488. //]]>
  489. </script>
  490. <script type="text/javascript" src="/js/common.js">
  491. </script>
  492. <script type="text/javascript">
  493. //<![CDATA[
  494.  
  495. const DATA = {
  496. COM: [
  497. ["Appliances", "s-cat-icon-appliances"],
  498. ["Arts, Crafts & Sewing", "s-cat-icon-craft"],
  499. ["Automotive", "s-cat-icon-automotive"],
  500. ["Baby", "s-cat-icon-baby"],
  501. ["Beauty & Personal Care", "s-cat-icon-beauty"],
  502. ["Books", "s-cat-icon-books"],
  503. ["Camera & Photo", "s-cat-icon-camera"],
  504. ["Cell Phones & Accessories", "s-cat-icon-phone"],
  505. ["Clothing, Shoes & Jewelry", "s-cat-icon-clothing"],
  506. ["Computers & Accessories", "s-cat-icon-computers"],
  507. ["Electronics", "s-cat-icon-electronics"],
  508. ["Grocery & Gourmet Food", "s-cat-icon-food"],
  509. ["Health & Household", "s-cat-icon-health"],
  510. ["Home and Garden", "s-cat-icon-home"],
  511. ["Home & Kitchen", "s-cat-icon-kitchen"],
  512. ["Industrial & Scientific", "s-cat-icon-gear"],
  513. ["Jewelry", "s-cat-icon-jewelry"],
  514. ["Kindle Store", "s-cat-icon-kindle"],
  515. ["Kitchen & Dining", "s-cat-icon-dining"],
  516. ["Musical Instruments", "s-cat-icon-musical-instruments"],
  517. ["Office Products", "s-cat-icon-office"],
  518. ["Patio, Lawn & Garden", "s-cat-icon-lawn"],
  519. ["Pet Supplies", "s-cat-icon-pet-food"],
  520. ["Shoes", "s-cat-icon-shoes"],
  521. ["Software", "s-cat-icon-software"],
  522. ["Sports & Outdoors", "s-cat-icon-sports"],
  523. ["Tools & Home Improvement", "s-cat-icon-repairs"],
  524. ["Toys & Games", "s-cat-icon-toys"],
  525. ["Watches", "s-cat-icon-watches"],
  526. ["Video Games", "s-cat-icon-joystick"]
  527. ],
  528. CO_UK: [
  529. ["Baby", "s-cat-icon-baby"],
  530. ["Beauty", "s-cat-icon-beauty"],
  531. ["Car & Motorbike", "s-cat-icon-automotive"],
  532. ["Clothing", "s-cat-icon-clothing"],
  533. ["Computers", "s-cat-icon-computers"],
  534. ["DIY & Tools", "s-cat-icon-repairs"],
  535. ["Electronics", "s-cat-icon-electronics"],
  536. ["Garden & Outdoors", "s-cat-icon-home"],
  537. ["Grocery", "s-cat-icon-food"],
  538. ["Health & Personal Care", "s-cat-icon-health"],
  539. ["Home & Kitchen", "s-cat-icon-kitchen"],
  540. ["Home Improvement", "s-cat-icon-repairs"],
  541. ["Industrial & Scientific", "s-cat-icon-gear"],
  542. ["Jewellery", "s-cat-icon-jewelry"],
  543. ["Lighting", ""],
  544. ["Luggage", ""],
  545. ["Musical Instruments", "s-cat-icon-musical-instruments"],
  546. ["Office Products", "s-cat-icon-office"],
  547. ["PC & Video Games", "s-cat-icon-joystick"],
  548. ["Patio, Lawn & Garden", "s-cat-icon-lawn"],
  549. ["Pet Supplies", "s-cat-icon-pet-food"],
  550. ["Shoes", "s-cat-icon-shoes"],
  551. ["Sports & Outdoors", "s-cat-icon-sports"],
  552. ["Toys & Games", "s-cat-icon-toys"],
  553. ["Watches", "s-cat-icon-watches"]
  554. ],
  555. CA: [
  556. ["Automotive", "s-cat-icon-automotive"],
  557. ["Baby", "s-cat-icon-baby"],
  558. ["Beauty", "s-cat-icon-beauty"],
  559. ["Electronics", "s-cat-icon-electronics"],
  560. ["Home & Kitchen", "s-cat-icon-kitchen"],
  561. ["Luggage & Bags", ""],
  562. ["Musical Instruments, Stage & Studio", "s-cat-icon-musical-instruments"],
  563. ["Office Products", "s-cat-icon-office"],
  564. ["Patio, Lawn & Garden", "s-cat-icon-lawn"],
  565. ["Pet Supplies", "s-cat-icon-pet-food"],
  566. ["Sports & Outdoors", "s-cat-icon-sports"],
  567. ["Tools & Home Improvement", "s-cat-icon-repairs"],
  568. ["Toys & Games", "s-cat-icon-toys"],
  569. ["Watches", "s-cat-icon-watches"]
  570. ],
  571. DE: [
  572. ["Auto & Motorrad", "s-cat-icon-automotive"],
  573. ["Baby", "s-cat-icon-baby"],
  574. ["Baumarkt", ""],
  575. ["Beauty", "s-cat-icon-beauty"],
  576. ["Bekleidung", ""],
  577. ["Beleuchtung", ""],
  578. ["Bücher", ""],
  579. ["Bürobedarf & Schreibwaren", ""],
  580. ["Computer & Zubehör", ""],
  581. ["DVD & Blu-ray", ""],
  582. ["Drogerie & Körperpflege", ""],
  583. ["Elektro-Großgeräte", ""],
  584. ["Elektronik", "s-cat-icon-electronics"],
  585. ["Games", "s-cat-icon-joystick"],
  586. ["Garten", ""],
  587. ["Gewerbe, Industrie & Wissenschaft", ""],
  588. ["Haustier", ""],
  589. ["Kamera", "s-cat-icon-camera"],
  590. ["Koffer, Rucksäcke & Taschen", ""],
  591. ["Küche & Haushalt", "s-cat-icon-dining"],
  592. ["Lebensmittel & Getränke", ""],
  593. ["Musik-CDs & Vinyl", "s-cat-icon-musical-instruments"],
  594. ["Musikinstrumente", "s-cat-icon-musical-instruments"],
  595. ["Schmuck", ""],
  596. ["Software", ""],
  597. ["Spielzeug", "s-cat-icon-toys"],
  598. ["Sport & Freizeit", "s-cat-icon-sports"],
  599. ["Uhren", "s-cat-icon-watches"]
  600. ],
  601. FR: [
  602. ["Animalerie", ""],
  603. ["Auto et Moto", ""],
  604. ["Bagages", ""],
  605. ["Beauté et Parfum", ""],
  606. ["Bijoux", ""],
  607. ["Bricolage", ""],
  608. ["Bébés & Puériculture", ""],
  609. ["Chaussures et Sacs", ""],
  610. ["Commerce, Industrie & Science", ""],
  611. ["Cuisine & Maison", ""],
  612. ["Epicerie", ""],
  613. ["Fournitures de bureau", ""],
  614. ["Gros électroménager", ""],
  615. ["High-Tech", ""],
  616. ["Hygiène et Soins du corps", ""],
  617. ["Informatique", ""],
  618. ["Instruments de musique", ""],
  619. ["Jardin", ""],
  620. ["Jeux et Jouets", ""],
  621. ["Jeux vidéo", ""],
  622. ["Livres anglais et étrangers", ""],
  623. ["Livres", ""],
  624. ["Logiciels", ""],
  625. ["Luminaires et Eclairage", ""],
  626. ["Montres", ""],
  627. ["Sports et Loisirs", ""],
  628. ["Vêtements et accessoires", ""]
  629. ],
  630. ES: [
  631. ["Bebé", ""],
  632. ["Belleza", ""],
  633. ["Bricolaje y herramientas", ""],
  634. ["Coche y moto", ""],
  635. ["Deportes y aire libre", ""],
  636. ["Electrónica", ""],
  637. ["Equipaje", ""],
  638. ["Hogar", ""],
  639. ["Iluminación", ""],
  640. ["Informática", ""],
  641. ["Instrumentos musicales", ""],
  642. ["Jardín", ""],
  643. ["Joyería", ""],
  644. ["Juguetes y juegos", ""],
  645. ["Libros", ""],
  646. ["Música", ""],
  647. ["Oficina y papelería", ""],
  648. ["Relojes", ""],
  649. ["Ropa y accesorios", ""],
  650. ["Salud y cuidado personal", ""],
  651. ["Supermercado", ""],
  652. ["Videojuegos", ""],
  653. ["Zapatos y complementos", ""]
  654. ],
  655. IT: [
  656. ["Abbigliamento", ""],
  657. ["Alimentari e cura della casa", ""],
  658. ["Auto e Moto", ""],
  659. ["Bellezza", ""],
  660. ["Cancelleria e prodotti per ufficio", ""],
  661. ["Casa e cucina", ""],
  662. ["Commercio, Industria e Scienza", ""],
  663. ["Elettronica", ""],
  664. ["Fai da te", ""],
  665. ["Film e TV", ""],
  666. ["Giardino e giardinaggio", ""],
  667. ["Giochi e giocattoli", ""],
  668. ["Gioielli", ""],
  669. ["Illuminazione", ""],
  670. ["Informatica", ""],
  671. ["Libri", ""],
  672. ["Musica", ""],
  673. ["Orologi", ""],
  674. ["Prima infanzia", ""],
  675. ["Prodotti Handmade", ""],
  676. ["Salute e cura della persona", ""],
  677. ["Scarpe e borse", ""],
  678. ["Software", ""],
  679. ["Sport e tempo libero", ""],
  680. ["Strumenti musicali e DJ", ""],
  681. ["Valigeria", ""],
  682. ["Videogiochi", ""]
  683. ],
  684. COM_MX: [
  685. ["Bebé", ""],
  686. ["Deportes y Aire Libre", ""],
  687. ["Electrónicos", ""],
  688. ["Herramientas y Mejoras del Hogar", ""],
  689. ["Hogar y Cocina", ""],
  690. ["Juegos y juguetes", ""],
  691. ["Oficina y papelería", ""],
  692. ["Ropa, Zapatos y Accesorios", ""],
  693. ["Salud, Belleza y Cuidado Personal", ""],
  694. ["Videojuegos", ""]
  695. ]
  696. };
  697.  
  698. var domain = 'COM';
  699. var category;
  700. var rank;
  701. var val = $('.cat-rank_sales-val');
  702.  
  703. function getEstSales() {
  704. if (!domain || !category || !rank || !/^\d+$/.test(rank)) {
  705. val.text('?');
  706. } else {
  707. var el = $('.js-disable');
  708. var enabler = function () {disable(el)};
  709. disable(el, true);
  710. $.get('/estimator/v1/sales?domain=' + domain + '&category=' + encodeURIComponent(category) + '&rank=' + rank)
  711. .then(function (response) {val.text(response.sales || '?')}, function () {val.text('?')})
  712. .then(enabler, enabler);
  713. track('Estimator', 'search');
  714. }
  715. }
  716.  
  717. function event(category, action) {
  718. track('send', 'event', category, action);
  719. }
  720.  
  721. function onBottomBannerClick() {
  722. track('Estimator', 'bottom banner click');
  723. setTimeout(function () {document.location.href = '/#s-prices';}, 300);
  724. }
  725.  
  726. function disable(el, val) {
  727. if (val) {
  728. el.attr('disabled', true);
  729. } else {
  730. el.removeAttr('disabled');
  731. }
  732. }
  733.  
  734. $(function () {
  735.  
  736. var rankInput = $('.cat-rank_input');
  737.  
  738. function toggleRank(e) {
  739. var cats = $('.cat-pick');
  740. var rank = $('.cat-rank');
  741.  
  742. var list = rank.find('.cat-pick_list');
  743. var $el = $(e.currentTarget).clone();
  744. $el.on('click', toggleRank).css('cursor', 'pointer');
  745. list.empty();
  746. list.append($el);
  747.  
  748. category = $el.find('.cat-pick_name-in').text();
  749.  
  750. rankInput.val('');
  751. cats.toggle();
  752. rank.toggle();
  753.  
  754. if ($(window).width() >= 768) {
  755. var catsHeight = cats.height();
  756. rank.height(catsHeight);
  757. }
  758. if (rank.is(':visible')) {
  759. val.text('?');
  760. setTimeout(function () {rankInput.focus()}, 0);
  761. }
  762. }
  763.  
  764. function selectDomain(d) {
  765. const data = DATA[d];
  766. const list = $('.cat-pick .cat-pick_list');
  767. list.empty();
  768. data.filter(function (d) {return d[1] != ''}).forEach(function (d) {
  769. var el = $('<div class="cat-pick_i"><span class="cat-pick_link"><span class="cat-pick_ico"><span></span></span><span class="cat-pick_name"><span class="cat-pick_name-in"></span></span></span></div>');
  770. el.find('.cat-pick_ico span').addClass(d[1]);
  771. el.find('.cat-pick_name-in').text(d[0]);
  772. el.on('click', toggleRank);
  773. list.append(el);
  774. });
  775. domain = d;
  776. }
  777. rankInput.on('change', function () {rank = rankInput.val()});
  778. rankInput.on('keyup', function(e) {e.keyCode == 13 && (rank = rankInput.val()) && getEstSales()});
  779. $('.cat-rank_another-link').on('click', toggleRank);
  780. $('#domain').on('change', function (e) {selectDomain(e.target.value);});
  781. selectDomain(domain);
  782. });
  783.  
  784. $('#modal-sales-rank').on('shown.bs.modal', function () {
  785. $('.cat-sales-rank_val .form-control').focus();
  786. });
  787. $(function() {
  788. $('.ui-select').each(function () {
  789. var $self = $(this);
  790. $self.select2({minimumResultsForSearch: Infinity,theme: "amzscout",placeholder: $self.attr('placeholder')});
  791. });
  792. });
  793.  
  794. //]]>
  795. </script>
  796. <script>
  797. //<![CDATA[
  798. window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement("iframe");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src="javascript:false",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="display: none",d=document.getElementsByTagName("script"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(e){n=document.domain,r.src='javascript:var d=document.open();d.domain="'+n+'";void(0);',o=s}o.open()._l=function(){var e=this.createElement("script");n&&(this.domain=n),e.id="js-iframe-async",e.src="https://assets.zendesk.com/embeddable_framework/main.js",this.t=+new Date,this.zendeskHost="amzscout.zendesk.com",this.zEQueue=a,this.body.appendChild(e)},o.write('<body onload="document._l();">'),o.close()}();
  799. //]]>
  800. </script>
  801. <script>
  802. //<![CDATA[
  803. zE(function(){zE.setHelpCenterSuggestions({ labels: ['faq_estimator'] });});
  804. //]]>
  805. </script>
  806. </body>
  807. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement