{"id":21950,"date":"2020-09-10T15:01:35","date_gmt":"2020-09-10T15:01:35","guid":{"rendered":"https:\/\/thatweb.dev\/blog\/?p=21950"},"modified":"2022-06-27T19:55:00","modified_gmt":"2022-06-27T19:55:00","slug":"cinema-ticket-selector-using-javascript","status":"publish","type":"post","link":"https:\/\/thatweb.dev\/blog\/cinema-ticket-selector-using-javascript\/","title":{"rendered":"Cinema ticket selector using JavaScript"},"content":{"rendered":"\r\n<p>The cinema ticket selector was a fun project as the CSS involved in creating the screen and the individual seats was interesting and I learnt a few tricks.<\/p>\r\n<p>JavaScript is used to toggle the colour of the seats, add the price up and change the price of the ticket based on what film is chosen.<\/p>\r\n<p><iframe loading=\"lazy\" src=\"https:\/\/vaughan.dev\/projects\/ticket-booking\" width=\"800\" height=\"580\" scrolling=\"no\"><\/iframe><\/p>\r\n\r\n\r\n\r\n<p><a href=\"https:\/\/vaughan.dev\/projects\/ticket-booking\" target=\"_blank\" rel=\"noopener\">View on stand alone page<\/a><\/p>\r\n<p>This project is part of <a href=\"https:\/\/www.udemy.com\/course\/web-projects-with-vanilla-javascript\/\">Brad Traversy&#8217;s 20 Web Projects with Vanilla JavaScript\u00a0<\/a><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>The cinema ticket selector was a fun project as the CSS involved in creating the screen and the individual seats was interesting and I learnt a few tricks. JavaScript is used to toggle the colour of the seats, add the price up and change the price of the ticket based on what film is chosen. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22026,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"yes","footnotes":""},"categories":[22,24,35,27],"tags":[],"class_list":["post-21950","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-learning","category-portfolio","category-project"],"_links":{"self":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/comments?post=21950"}],"version-history":[{"count":29,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21950\/revisions"}],"predecessor-version":[{"id":22057,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/posts\/21950\/revisions\/22057"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/media\/22026"}],"wp:attachment":[{"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/media?parent=21950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/categories?post=21950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thatweb.dev\/blog\/wp-json\/wp\/v2\/tags?post=21950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}