Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbserverprogrammering/projekt/snake_oil_seller/

about_us.php
admin.php
contact.php
create_products
createtable.php
css/
dbconnection.php
deletepost.php
deletetable.php
entry.php
header.php
insertposts.php
js/
leaderboard.php
log_in.php
log_out.php
main.php
my_account.php
php/
question_maker.php
quiz_form.php
quiz_list.php
quiz_maker.php
result.php
selectposts.php
shop.php
shopping_cart.php
sign_in.php
snake_oil.css
style.js
title_card.php
updateposts.php
user_verified.php
verify_page.php

style.js

12 lines ASCII Windows (CRLF)
function createAlternative() {
  const answerDiv = document.getElementById("answerDiv");

  const id = 1 + (answerDiv.children.length / 2);

  const input = document.createElement("input");
  input.type = "text";
  input.name = "answer" + id;
  input.placeholder = "Alternativ";

  answerDiv.appendChild(input);
}