Last active
December 5, 2018 20:01
-
-
Save dhindurthy/81fb7dfe5cee53d478fb91f8fc34cd8c to your computer and use it in GitHub Desktop.
aria-keyshortcuts
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ['page-layout'], | |
keyDown : function(e) { | |
console.log(e.keyCode); | |
if(event.keyCode==66 && event.ctrlKey) { | |
console.log('ctrl+b was typed.'); | |
this.$('.item-d').focus(); | |
} | |
if(event.keyCode==81 && event.ctrlKey) { | |
console.log('ctrl+q was typed.'); | |
this.$('.item-b').focus(); | |
} | |
if(event.keyCode==89 && event.ctrlKey) { | |
console.log('ctrl+y was typed.'); | |
this.$('.item-a').focus(); | |
} | |
if(event.keyCode==86 && event.ctrlKey) { | |
console.log('ctrl+v was typed.'); | |
this.$('.item-f').focus(); | |
} | |
if(event.keyCode==77 && event.ctrlKey) { | |
console.log('ctrl+m was typed.'); | |
this.$('.item-g').focus(); | |
} | |
if(event.keyCode==88 && event.ctrlKey) { | |
console.log('ctrl+x was typed.'); | |
this.$('.item-c').focus(); | |
} | |
if(event.keyCode==67 && event.ctrlKey) { | |
console.log('ctrl+c was typed.'); | |
this.$('.item-e').focus(); | |
} | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
}); |
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
body { | |
margin: 12px 16px; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
} | |
body { | |
margin:0 auto; | |
font-family:"Comic Sans MS", cursive, sans-serif;//"Indie Flower", | |
} | |
.container { | |
font-size: 12px; | |
display: flex; | |
align-items: center; | |
align-content: center; | |
justify-content: center; | |
height: 100vh; | |
} | |
div.grid-container{ | |
border: 0.25rem solid black; | |
border-radius: 0.5rem; | |
} | |
.item { | |
border: 0.05rem solid black; | |
border-radius: 0.25rem; | |
} | |
.item:focus { | |
border: none; | |
background-color: #e35b44; | |
color: white; | |
} | |
.item-a { | |
grid-area: logo; | |
//background-color: green; | |
} | |
.item-b { | |
grid-area: header; | |
//background-color: yellow; | |
} | |
.item-c { | |
grid-area: sidenav; | |
//background-color: red; | |
} | |
.item-d { | |
grid-area: main; | |
//background-color: violet; | |
} | |
.item-e { | |
grid-area: recents; | |
//background-color: indigo; | |
} | |
.item-f { | |
grid-area: footer; | |
//background-color: orange; | |
} | |
.item-g { | |
grid-area: social; | |
//background-color: blue; | |
} | |
.grid-container { | |
display: grid; | |
width: 55vw; | |
height: 45vh; | |
grid-template-columns: 50px 110px 110px 110px 50px; | |
grid-template-rows: 40px 120px 40px ; | |
grid-template-areas: | |
"logo header header header header" | |
"sidenav main main main recents" | |
"sidenav footer footer footer social"; | |
grid-column-gap: 0.15rem; | |
grid-row-gap: 0.25rem; | |
justify-items: stretch; | |
align-items: stretch; | |
justify-content: space-evenly; | |
align-content: center; | |
grid-auto-columns: 3rem; | |
grid-auto-rows: 3rem; | |
grid-auto-flow:column; | |
} | |
.content { | |
background-color: #77EDF4; | |
width: 2rem; | |
height: 2rem; | |
border-radius: 0.25rem; | |
} |
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
{ | |
"version": "0.12.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0", | |
"ember-cli-sass": "5.5.1" | |
}, | |
"addons": { | |
"ember-data": "2.12.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment