Commit fbe96ab3a494487f7978b0b3353c4c3c39897e84

Authored by Andrew Buss
1 parent eebef3a1c9
Exists in master

remove white-text from irc link

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

scripts/HelpController.js View file @ fbe96ab
angular.module('flashy.HelpController', ['ui.router']). 1 1 angular.module('flashy.HelpController', ['ui.router']).
2 2
controller('HelpController', function($scope, $state, $http, $timeout) { 3 3 controller('HelpController', function($scope, $state, $http, $timeout) {
$scope.toggleContent = function(event, index) { 4 4 $scope.toggleContent = function(event, index) {
console.log(event, index); 5 5 console.log(event, index);
6 6
if ($('#content-' + index).hasClass('open')) { // let's close it 7 7 if ($('#content-' + index).hasClass('open')) { // let's close it
// Note: 250 is duration (ms) of animation 8 8 // Note: 250 is duration (ms) of animation
$('#content-' + index).slideUp(250).removeClass('open'); 9 9 $('#content-' + index).slideUp(250).removeClass('open');
} else { // let'd open it 10 10 } else { // let'd open it
$('#content-' + index).slideDown(250).addClass('open'); 11 11 $('#content-' + index).slideDown(250).addClass('open');
} 12 12 }
13 13
// event.currentTarget 14 14 // event.currentTarget
}; 15 15 };
16 16
$scope.closeContent = function(event) { 17 17 $scope.closeContent = function(event) {
18 18
}; 19 19 };
20 20
// JSON OF FAQ ENTRIES 21 21 // JSON OF FAQ ENTRIES
$scope.entries = [ 22 22 $scope.entries = [
{ 23 23 {
// icon: 'mdi-editor-insert-emoticon small', 24 24 // icon: 'mdi-editor-insert-emoticon small',
question: 'What is Flashy?', 25 25 question: 'What is Flashy?',
answer: '<p>Flashy is a service for creating, sharing, and reviewing flashcards for your courses.' + 26 26 answer: '<p>Flashy is a service for creating, sharing, and reviewing flashcards for your courses.' +
'</p><p>Flashy is optimized for contributing cards in real time during lecture to a shared live' + 27 27 '</p><p>Flashy is optimized for contributing cards in real time during lecture to a shared live' +
" feed. Don't want to contribute cards? That's fine! By adding others' cards to your deck, you" + 28 28 " feed. Don't want to contribute cards? That's fine! By adding others' cards to your deck, you" +
' help identify high-quality cards which should remain at the top of the feed for others to choose.' + 29 29 ' help identify high-quality cards which should remain at the top of the feed for others to choose.' +
'</p><p>Based on the principles of spaced repetition, Flashy also intelligently determines which' + 30 30 '</p><p>Based on the principles of spaced repetition, Flashy also intelligently determines which' +
' cards you are most at risk of forgetting, based on your review history. Receive push ' + 31 31 ' cards you are most at risk of forgetting, based on your review history. Receive push ' +
"notifications on your Android device's Chrome browser without installing any other app," + 32 32 "notifications on your Android device's Chrome browser without installing any other app," +
" and we'll notify you when you have a few cards which need to be reviewed.</p>" 33 33 " and we'll notify you when you have a few cards which need to be reviewed.</p>"
}, 34 34 },
{ 35 35 {
// icon: 'mdi-file-cloud-queue small', 36 36 // icon: 'mdi-file-cloud-queue small',
question: 'Does Flashy work outside of UCSD?', 37 37 question: 'Does Flashy work outside of UCSD?',
answer: "To simplify development, Flashy was configured only for courses at UCSD. If you'd like Flashy for your school, please send us an email to let us know!" 38 38 answer: "To simplify development, Flashy was configured only for courses at UCSD. If you'd like Flashy for your school, please send us an email to let us know!"
}, 39 39 },
{ 40 40 {
// icon: 'mdi-hardware-security small', 41 41 // icon: 'mdi-hardware-security small',
question: 'How do registration and verification work?', 42 42 question: 'How do registration and verification work?',
answer: "An account is required to use Flashy. We store the cards you save to your deck with your account. When you register, you'll be able to use the site immediately, but you must verify ownership of your email address within 24 hours. After 24 hours have passed, you'll need to verify your address before continuing to use the site. Don't worry, your cards and deck won't be deleted." 43 43 answer: "An account is required to use Flashy. We store the cards you save to your deck with your account. When you register, you'll be able to use the site immediately, but you must verify ownership of your email address within 24 hours. After 24 hours have passed, you'll need to verify your address before continuing to use the site. Don't worry, your cards and deck won't be deleted."
}, 44 44 },
{ 45 45 {
question: "My question isn't answered above", 46 46 question: "My question isn't answered above",
answer: '<a href="mailto:or.so.help.me@flashy.cards">Send us an email</a> or join us on Freenode in <a class="white-text" href="irc://irc.freenode.net/flashy">#flashy</a>!' 47 47 answer: '<a href="mailto:or.so.help.me@flashy.cards">Send us an email</a> or join us on Freenode in <a href="irc://irc.freenode.net/flashy">#flashy</a>!'
}]; 48 48 }];
49 49
// Functions 50 50 // Functions
$scope.toggleContent = function(event, index) { 51 51 $scope.toggleContent = function(event, index) {
if ($('#content-' + index).hasClass('open')) { // let's close it 52 52 if ($('#content-' + index).hasClass('open')) { // let's close it
// Note: 250 is duration (ms) of animation 53 53 // Note: 250 is duration (ms) of animation
$('#content-' + index).slideUp(250).removeClass('open'); 54 54 $('#content-' + index).slideUp(250).removeClass('open');
} else { // let's open it 55 55 } else { // let's open it
$('#content-' + index).slideDown(250).addClass('open'); 56 56 $('#content-' + index).slideDown(250).addClass('open');
} 57 57 }
}; 58 58 };
59 59
$scope.expandAllContent = function() { 60 60 $scope.expandAllContent = function() {
for (var i = 0; i < $scope.entries.length; i++) { 61 61 for (var i = 0; i < $scope.entries.length; i++) {
$('#content-' + i).slideDown(0).addClass('open'); 62 62 $('#content-' + i).slideDown(0).addClass('open');
} 63 63 }