Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1

# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
# See: https://circleci.com/docs/2.0/orb-intro/
orbs:
node: circleci/node@4.1
# The heroku orb contains a set of prepackaged CircleCI configuration you can utilize to deploy applications to heroku
# Orbs reduce the amount of configuration required for common tasks.
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/heroku
# NOTE: Environment variables containing the necessary secrets can be setup in the CircleCI UI
# See here https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-project
heroku: circleci/heroku@1.2

workflows:
# Below is the definition of your workflow.
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above.
# CircleCI will run this workflow on every commit.
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
sample:
jobs:
- node/test
- heroku/deploy-via-git:
force: true # this parameter instructs the push to use a force flag when pushing to the heroku remote, see: https://devcenter.heroku.com/articles/git
requires:
- node/test # only run deploy-via-git job if the build job has completed
filters:
branches:
# This sample config runs this job on any branch matching the regex below, however, it's more likely you want to only run this job on master.
only: /.*-heroku-deploy/ # Delete this line
# only: master # Uncomment this line
33 changes: 17 additions & 16 deletions formSample.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
<!DOCTYPE html>
<html lang="en-US">
<html lang="heb">

<head>
<meta charset="utf-8">
<link rel="stylesheet" href="formSample.css">
<script type="text/javascript" src="formSample.js"></script>
<title>Student details</title>
</head>
<body>
<p>Please fill-in student detials</p>

<body dir="rtl">
<p>פרטי הסטודנט:</p>
<form onSubmit="return saveStudent()">
<ul>
<li>
<label for="fname">First name:</label>
<input type="text" id="fname" name="first_name">
<label for="fname" dir="rtl">שם פרטי:</label>
<input type="text" id="fname" name="first_name" dir="ltr">
</li>
<li>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="last_name">
<label for="lname" dir="rtl">שם מפשחה:</label>
<input type="text" id="lname" name="last_name" dir="ltr">
</li>
<li>
<label for="mail">E-mail:</label>
<label for="mail" dir="rtl">אימייל:</label>
<input type="email" id="mail" name="student_email">
</li>
<li>
<label for="msg">Message:</label>
<label for="msg">הודעה:</label>
<textarea id="msg" name="student_message"></textarea>
</li>
<li>
<label for="status">Choose a car:</label>
<label for="status">בחר:</label>
<select name="status" id="status">
<option value="Married">Married</option>
<option value="Bachelor">Bachelor</option>
<option value="Divorcee">Divorcee</option>
<option value="Widower">Widower</option>
<option value="Married">נשוי\ה</option>
<option value="Bachelor">רווק\ה</option>
<option value="Divorcee">גרוש\ה</option>
<option value="Widower">אלמן\ה</option>
</select>
</li>
<li class="button">
<button type="submit">Save</button>
<button type="submit">שמירה</button>
</li>
</ul>
</form>
<div>
<ul>
<li>
<button onclick="getStudentFromLocalStorage()">Get from local storage</button>
<button onclick="getStudentFromLocalStorage()">לעבור לבסיס</button>
</li>
</ul>
</div>
Expand Down