-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
269 additions
and
154 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# [Post to Facebook - Story 5.1] | ||
# Opens popup window for the facebook popup | ||
# Parameters: | ||
# url: url to open in popup window | ||
# popName: name of popup window | ||
# Returns: none | ||
# Author: Amir George | ||
|
||
@openBackWindow = (url, popName) -> | ||
popupWindow = window.open(url, popName, "scrollbars=1,height=1,width=1") | ||
if $.browser.msie | ||
popupWindow.blur() | ||
window.focus() | ||
else | ||
blurPopunder() | ||
return | ||
|
||
# [Post to Facebook - Story 5.1] | ||
# Helper for openBackWindow | ||
# Parameters: none | ||
# Returns: none | ||
# Author: Amir George | ||
|
||
blurPopunder = -> | ||
winBlankPopup = window.open("about:blank") | ||
if winBlankPopup | ||
winBlankPopup.focus() | ||
winBlankPopup.close() | ||
return |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*----- Tabs -----*/ | ||
.tabs { | ||
width:100%; | ||
display:inline-block; | ||
} | ||
/*----- Tab Links -----*/ | ||
/* Clearfix */ | ||
.tab-links:after { | ||
display:block; | ||
clear:both; | ||
content:''; | ||
} | ||
.tab-links li { | ||
margin:0px 5px; | ||
float:left; | ||
list-style:none; | ||
} | ||
.tab-links a { | ||
padding:9px 15px; | ||
display:inline-block; | ||
border-radius:3px 3px 0px 0px; | ||
background:#7FB5DA; | ||
font-size:16px; | ||
font-weight:600; | ||
color:#4c4c4c; | ||
transition:all linear 0.15s; | ||
} | ||
.tab-links a:hover { | ||
background:#a7cce5; | ||
text-decoration:none; | ||
} | ||
li.active a, li.active a:hover { | ||
background:#fff; | ||
color:#4c4c4c; | ||
} | ||
/*----- Content of Tabs -----*/ | ||
.tab-content { | ||
padding:15px; | ||
border-radius:3px; | ||
box-shadow:-1px 1px 1px rgba(0,0,0,0.15); | ||
background:#fff; | ||
} | ||
.tab { | ||
display:none; | ||
} | ||
.tab.active { | ||
display:block; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*----- Tabs -----*/ | ||
.tabs { | ||
width:100%; | ||
display:inline-block; | ||
} | ||
/*----- Tab Links -----*/ | ||
/* Clearfix */ | ||
.tab-links:after { | ||
display:block; | ||
clear:both; | ||
content:''; | ||
} | ||
.tab-links li { | ||
margin:0px 5px; | ||
float:left; | ||
list-style:none; | ||
} | ||
.tab-links a { | ||
padding:9px 15px; | ||
display:inline-block; | ||
border-radius:3px 3px 0px 0px; | ||
background:#7FB5DA; | ||
font-size:16px; | ||
font-weight:600; | ||
color:#4c4c4c; | ||
transition:all linear 0.15s; | ||
} | ||
.tab-links a:hover { | ||
background:#a7cce5; | ||
text-decoration:none; | ||
} | ||
li.active a, li.active a:hover { | ||
background:#fff; | ||
color:#4c4c4c; | ||
} | ||
/*----- Content of Tabs -----*/ | ||
.tab-content { | ||
padding:15px; | ||
border-radius:3px; | ||
box-shadow:-1px 1px 1px rgba(0,0,0,0.15); | ||
background:#fff; | ||
} | ||
.tab { | ||
display:none; | ||
} | ||
.tab.active { | ||
display:block; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/*----- Tabs -----*/ | ||
.tabs { | ||
width:100%; | ||
display:inline-block; | ||
} | ||
/*----- Tab Links -----*/ | ||
/* Clearfix */ | ||
.tab-links:after { | ||
display:block; | ||
clear:both; | ||
content:''; | ||
} | ||
.tab-links li { | ||
margin:0px 5px; | ||
float:left; | ||
list-style:none; | ||
} | ||
.tab-links a { | ||
padding:9px 15px; | ||
display:inline-block; | ||
border-radius:3px 3px 0px 0px; | ||
background:#7FB5DA; | ||
font-size:16px; | ||
font-weight:600; | ||
color:#4c4c4c; | ||
transition:all linear 0.15s; | ||
} | ||
.tab-links a:hover { | ||
background:#a7cce5; | ||
text-decoration:none; | ||
} | ||
li.active a, li.active a:hover { | ||
background:#fff; | ||
color:#4c4c4c; | ||
} | ||
/*----- Content of Tabs -----*/ | ||
.tab-content { | ||
padding:15px; | ||
border-radius:3px; | ||
box-shadow:-1px 1px 1px rgba(0,0,0,0.15); | ||
background:#fff; | ||
} | ||
.tab { | ||
display:none; | ||
} | ||
.tab.active { | ||
display:block; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class FacebookController < ApplicationController | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class Acknowledgement < ActiveRecord::Base | ||
|
||
#validatesions | ||
|
||
#Relations | ||
belongs_to :student | ||
belongs_to :course | ||
belongs_to :lecturer | ||
|
||
#Scoops | ||
|
||
#Methods | ||
|
||
end |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- [Post to Facebook - Story 5.1] --> | ||
<!-- Facebook SDK for Javascript code to handle posting to facebook --> | ||
<!-- Parameters: none --> | ||
<!-- Returns: none --> | ||
<!-- Author: Amir George --> | ||
<div id="fb-root"></div> | ||
<script> | ||
window.fbAsyncInit = function() { | ||
FB.init({ | ||
appId : '623954164351291', | ||
status : true, | ||
xfbml : true | ||
}); | ||
FB.ui( | ||
{ | ||
method: 'feed' | ||
}, | ||
function(response) { | ||
if (response && response.post_id) { | ||
alert('Post was published.'); | ||
window.close(); | ||
} else { | ||
alert('Post was not published.'); | ||
window.close(); | ||
} | ||
} | ||
); | ||
}; | ||
(function(d, s, id){ | ||
var js, fjs = d.getElementsByTagName(s)[0]; | ||
if (d.getElementById(id)) {return;} | ||
js = d.createElement(s); js.id = id; | ||
js.src = "//connect.facebook.net/en_US/all.js"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk')); | ||
</script> |
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
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
Oops, something went wrong.