Kostenrechner

<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><form>  <h2>Anzahl Ihrer Produkte auswählen: </h2><br><!-- [et_pb_line_break_holder] --> <div><!-- [et_pb_line_break_holder] --> <div class="et-fb-settings-option-inner et-fb-settings-option-inner-range"><div class="et-fb-settings-option-inputs-wrap"><!-- [et_pb_line_break_holder] --><input class="et-fb-range" type="range" id="item1" min="10" max="1500" value="150" /> </div><!-- [et_pb_line_break_holder] --></div>   </form> <br>Sie haben <span id="art">150</span> Produkte ausgewählt.     <br><br>  <!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><h2>Auswahl der Plattformen</h2><br><!-- [et_pb_line_break_holder] -->Wobei Google Shopping, Amazon, Idealo, Billiger oder Idealo sind jeweils eine (1) Plattform sind:<br>  <!-- [et_pb_line_break_holder] --> <div> <input type="checkbox" id="google" checked /> Google Shopping (International)  </div>        <!-- [et_pb_line_break_holder] --><div><input type="checkbox" id="idealo" /> Idealo (.de,. co.uk, .fr, .it, .es) </div><!-- [et_pb_line_break_holder] --> <div><input type="checkbox" id="amazon" /> Amazon  (International)  /div><!-- [et_pb_line_break_holder] --> <div><input type="checkbox" id="billiger" /> Billiger (.de)</div><!-- [et_pb_line_break_holder] --> <div><input type="checkbox" id="check24" /> Check24 (.de)</div><!-- [et_pb_line_break_holder] --> <br><!-- [et_pb_line_break_holder] --> <div><input type="checkbox" id="repricer1" /> RePricing</div><!-- [et_pb_line_break_holder] --> <div><input type="checkbox" id="repricer2" /> Preisoptimierung (Regelbasiert und KI-enabled)</div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --> <br>Ihr Gesamtbetrag: ca. <b><span id="endprice">13,50</span> € pro Monat </b><!-- [et_pb_line_break_holder] --> <span id="articles">150</span> Produkte<br/>    </form> <br><!-- [et_pb_line_break_holder] --> <script><!-- [et_pb_line_break_holder] --> var prices = {<!-- [et_pb_line_break_holder] --> item1: 0.003, //$2 per beer (html id="item1")<!-- [et_pb_line_break_holder] --> item2: 15 //(html id="item2")<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->var multiplier = 1;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->$(document).ready(function(){<!-- [et_pb_line_break_holder] --> $('#item1,#item2').on('input', function(){<!-- [et_pb_line_break_holder] --> $(this).next('span').text( $(this).val() );<!-- [et_pb_line_break_holder] --> showTotal();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] -->$('#idealo, #check24, #google, #amazon, #billiger, #repricer1, #repricer2').on('click', function(){<!-- [et_pb_line_break_holder] --> if (this.checked) {<!-- [et_pb_line_break_holder] --> multiplier = multiplier + 1;<!-- [et_pb_line_break_holder] --> } else {<!-- [et_pb_line_break_holder] --> multiplier = multiplier - 1;<!-- [et_pb_line_break_holder] --> }<!-- [et_pb_line_break_holder] --> showTotal();<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> showTotal = function(){<!-- [et_pb_line_break_holder] --> var total = 0;<!-- [et_pb_line_break_holder] -->var articles_nmbr = 0;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->$('input[type=range').each(function(){<!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> var myid = $(this).attr('id')<!-- [et_pb_line_break_holder] --> var value = parseInt($(this).val())<!-- [et_pb_line_break_holder] -->articles_nmbr = value<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->if(myid == "item1"){<!-- [et_pb_line_break_holder] --> total += 30 * value * prices[myid] * multiplier;<!-- [et_pb_line_break_holder] --> }else{<!-- [et_pb_line_break_holder] --> total = total * value * multiplier;<!-- [et_pb_line_break_holder] --> } <!-- [et_pb_line_break_holder] --> <!-- [et_pb_line_break_holder] --> })<!-- [et_pb_line_break_holder] --> $('#endprice').html(total.toFixed(2))<!-- [et_pb_line_break_holder] -->$('#art').html(articles_nmbr.toFixed())      }<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --> </script>