{"size": 696, "ext": "js", "max_stars_repo_path": "src/main.js", "max_stars_repo_name": "zubeydesisman/sismanpizza", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/main.js", "max_issues_repo_name": "zubeydesisman/sismanpizza", "max_issues_repo_issues_event_min_datetime": "2020-07-21T12:46:34.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T05:28:24.000Z", "max_forks_repo_path": "src/main.js", "max_forks_repo_name": "zubeydesisman/sismanpizza", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 33.1428571429, "max_line_length": 90, "alphanum_fraction": 0.6738505747}

import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import { Pizza } from './pizza.js';
import $ from 'jquery';
import '../style.css';

$(document).ready(function(){
  $("form").submit(function(event){
    event.preventDefault();
    //var checkedPizzaTop = $(":checkbox:checked").length; (doing same thing as next line)
    var checkedPizzaTop = $("input:checkbox[name=toppings]:checked").length;
    var  checkedPizzaSize = $("input:radio[name=size]:checked").val();
    var newPizza = new Pizza(checkedPizzaTop, checkedPizzaSize);
    newPizza.calculatePrice();
    var finalPrice = newPizza.pizzaPrice;
    $(".finalprice").text(finalPrice);
    $("#price").show();
  });
});
