2014-08-09 03:30:28 +08:00
|
|
|
Template.footer.helpers
|
|
|
|
getFooterString: ->
|
|
|
|
# info = Meteor.call('getServerInfo')
|
|
|
|
year = "YEAR" #info.getBuildYear()
|
|
|
|
month = "MONTH" #info.getBuildMonth()
|
|
|
|
day = "DAY" #info.getBuildDay()
|
|
|
|
version = "VERSION_XXXX" #info.getBuildVersion()
|
|
|
|
copyrightYear = (new Date()).getFullYear()
|
|
|
|
link = "<a href='http://bigbluebutton.org/' target='_blank'>http://bigbluebutton.org</a>"
|
|
|
|
foot = "(c) #{copyrightYear} BigBlueButton Inc. [build #{version}-#{year}-#{month}-#{day}] - For more information visit #{link}"
|
2014-07-17 02:10:27 +08:00
|
|
|
|
2014-06-14 02:20:36 +08:00
|
|
|
Template.header.events
|
|
|
|
"click .usersListIcon": (event) ->
|
|
|
|
toggleUsersList()
|
|
|
|
"click .chatBarIcon": (event) ->
|
2014-06-19 21:27:04 +08:00
|
|
|
toggleChatbar()
|
2014-06-14 02:20:36 +08:00
|
|
|
"click .videoFeedIcon": (event) ->
|
|
|
|
toggleCam @
|
|
|
|
"click .audioFeedIcon": (event) ->
|
2014-07-29 03:24:07 +08:00
|
|
|
toggleVoiceCall @
|
|
|
|
"click .muteIcon": (event) ->
|
2014-06-14 02:20:36 +08:00
|
|
|
toggleMic @
|
|
|
|
"click .signOutIcon": (event) ->
|
2014-07-25 01:56:31 +08:00
|
|
|
userLogout getInSession("meetingId"), getInSession("userId"), true
|
2014-06-14 02:20:36 +08:00
|
|
|
"click .hideNavbarIcon": (event) ->
|
|
|
|
toggleNavbar()
|
|
|
|
"click .settingsIcon": (event) ->
|
2014-06-23 21:21:03 +08:00
|
|
|
alert "settings"
|
2014-08-16 05:08:12 +08:00
|
|
|
"click .raiseHand": (event) ->
|
2014-08-18 23:01:16 +08:00
|
|
|
Meteor.call('userRaiseHand', getInSession("meetingId"), @id)
|
2014-08-16 05:08:12 +08:00
|
|
|
"click .lowerHand": (event) ->
|
2014-08-18 23:15:46 +08:00
|
|
|
# loweredBy = @id # TODO! this must be the userid of the person lowering the hand - instructor/student
|
|
|
|
loweredBy = getInSession("userId")
|
2014-08-18 23:01:16 +08:00
|
|
|
Meteor.call('userLowerHand', getInSession("meetingId"), @id, loweredBy)
|
2014-08-01 21:51:45 +08:00
|
|
|
"click .whiteboardIcon": (event) ->
|
|
|
|
toggleWhiteBoard()
|
2014-07-31 04:22:23 +08:00
|
|
|
|
2014-08-15 01:26:15 +08:00
|
|
|
Template.recordingStatus.rendered = ->
|
|
|
|
$('button[rel=tooltip]').tooltip()
|
|
|
|
|
2014-07-31 04:22:23 +08:00
|
|
|
Template.makeButton.rendered = ->
|
2014-08-15 01:26:15 +08:00
|
|
|
$('button[rel=tooltip]').tooltip()
|
|
|
|
|
2014-06-27 01:13:19 +08:00
|
|
|
# Gets called last in main template, just an easy place to print stuff out
|
2014-06-26 02:51:16 +08:00
|
|
|
Handlebars.registerHelper "doFinalStuff", ->
|
2014-07-12 02:58:25 +08:00
|
|
|
console.log "-----Doing Final Stuff-----"
|
2014-08-09 00:04:04 +08:00
|
|
|
|
2014-06-14 02:20:36 +08:00
|
|
|
# These settings can just be stored locally in session, created at start up
|
|
|
|
Meteor.startup ->
|
2014-07-21 23:30:21 +08:00
|
|
|
@SessionAmplify = _.extend({}, Session,
|
|
|
|
keys: _.object(_.map(amplify.store(), (value, key) ->
|
|
|
|
[
|
|
|
|
key
|
|
|
|
JSON.stringify(value)
|
|
|
|
]
|
|
|
|
))
|
|
|
|
set: (key, value) ->
|
|
|
|
Session.set.apply this, arguments
|
|
|
|
amplify.store key, value
|
|
|
|
return
|
|
|
|
)
|
2014-07-18 03:45:26 +08:00
|
|
|
|
2014-08-19 23:52:24 +08:00
|
|
|
setInSession "display_usersList", true
|
|
|
|
setInSession "display_navbar", true
|
|
|
|
setInSession "display_chatbar", true
|
|
|
|
setInSession "display_whiteboard", true
|
|
|
|
setInSession "display_chatPane", true
|
|
|
|
setInSession 'inChatWith', "PUBLIC_CHAT"
|
|
|
|
setInSession "joinedAt", getTime()
|
|
|
|
setInSession "isSharingAudio", false
|
|
|
|
setInSession "inChatWith", 'PUBLIC_CHAT'
|
|
|
|
setInSession "messageFontSize", 12
|