Created
October 29, 2017 15:43
-
-
Save codyjhill99/7ba95899472f15cf920f68ace4c9533a to your computer and use it in GitHub Desktop.
Check me in code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//alexa skill function code | |
/* eslint-disable func-names */ | |
/* eslint quote-props: ["error", "consistent"]*/ | |
/** | |
* This sample demonstrates a simple skill built with the Amazon Alexa Skills | |
* nodejs skill development kit. | |
* This sample supports multiple lauguages. (en-US, en-GB, de-DE). | |
* The Intent Schema, Custom Slots and Sample Utterances for this skill, as well | |
* as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-fact | |
**/ | |
"use strict"; | |
var Alexa = require("alexa-sdk"); | |
var handlers = { | |
"CheckIn": function () { | |
const patientSlot = this.event.request.intent.slots.Patients.value; | |
this.response.speak("Welcome, I've checked you in " + patientSlot ); | |
this.emit(':responseReady'); | |
}, | |
}; | |
exports.handler = function(event, context, callback){ | |
var alexa = Alexa.handler(event, context); | |
alexa.registerHandlers(handlers); | |
alexa.execute(); | |
}; | |
//HTML bootstrap doctor portal | |
<DOCTYPE html> | |
<head> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> | |
<title>Doctor View</title> | |
</head> | |
<body> | |
<style> | |
body { | |
margin: 0; | |
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Lake_mapourika_NZ.jpeg/1024px-Lake_mapourika_NZ.jpeg'); | |
background-size: 100%; | |
background-repeat:no-repeat; | |
display: compact; | |
font: 13px/18px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
.vertical-center { | |
min-height: 100%; /* Fallback for browsers do NOT support vh unit */ | |
min-height: 100vh; /* These two lines are counted as one :-) */ | |
display: flex; | |
align-items: center; | |
} | |
</style> | |
<div class="row vertical-center"> | |
<div class="col-md-6 offset-md-3"><div class="list-group"> | |
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start active"> | |
<div class="d-flex w-100 justify-content-between"> | |
<h5 class="mb-1">Cody Hill</h5> | |
<small>9:00 AM</small> | |
</div> | |
<p class="mb-1">Treament for ear infection</p> | |
<small>No allergies</small> | |
</a> | |
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start active"> | |
<div class="d-flex w-100 justify-content-between"> | |
<h5 class="mb-1">Cody Hill</h5> | |
<small>10:00 AM</small> | |
</div> | |
<p class="mb-1">Treament for ear infection</p> | |
<small>No allergies</small> | |
</a> | |
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start active"> | |
<div class="d-flex w-100 justify-content-between"> | |
<h5 class="mb-1">Cody Hill</h5> | |
<small>11:00 AM</small> | |
</div> | |
<p class="mb-1">Treament for ear infection</p> | |
<small>No allergies</small> | |
</a> | |
</div></div> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment