Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
bb19eb8
add package.json and add |npm start| command
yurenju Jul 22, 2014
fdaa746
show picture if available
yurenju Jul 22, 2014
fdff2a0
XD add xd calculator.....
john-hu Jul 23, 2014
6b7be0b
Orz => fix the li issue
john-hu Jul 23, 2014
bc16fa6
add "啊" in xdRegexes
mpizza Jul 23, 2014
7b94285
^____^ fix the big smile face and add 阿 to be the same of 啊
john-hu Jul 24, 2014
97bb24a
add ">///<" and ":P" into xdRegexes
mpizza Jul 25, 2014
8f66368
add Bootstrap CDN and index page
mpizza Jul 25, 2014
a8449f1
XD: add search feature
mpizza Jul 25, 2014
5cb8883
use webapplate
gasolin Jul 25, 2014
6a3d5ab
fix
gasolin Jul 25, 2014
44ddb8e
Revert "fix"
john-hu Jul 25, 2014
ab4b2c2
Revert "use webapplate"
john-hu Jul 25, 2014
bd506ba
add color thief to analyze image's dominant color
shamenchens Jul 25, 2014
0438890
Merge pull request #1 from shamenchens/ImageAnalyze3
shamenchens Jul 25, 2014
7c6a90b
add webapplate
gasolin Jul 25, 2014
db10beb
source moved to public and add README
gasolin Jul 25, 2014
0662d8d
remove .gitmodule dep
gasolin Jul 25, 2014
db4a246
fix jquery import order
gasolin Jul 25, 2014
0552dea
fix wordfreq path in fb.js
gasolin Jul 25, 2014
ead96ee
manage jquery and color-thief with bower
gasolin Jul 25, 2014
dd45b73
Using inline-block for friendlist
yurenju Jul 25, 2014
829b990
:) use "Twenty 1.0 by HTML5 UP html5up.net | @n33co" Theme
mpizza Jul 25, 2014
5da386c
XD fixed "hidden" style
mpizza Jul 25, 2014
64e46d2
add more files to .gitignore
yurenju Jul 26, 2014
27d41e9
use thumbs-up for shape
yurenju Jul 26, 2014
a0aded6
XD fixed facebook picture error and minor css/html issue
mpizza Jul 26, 2014
3b1dc0b
Merge branch 'master' of github.com:XDDDDD/xd into xd-master
mpizza Jul 26, 2014
752a946
remove xd.html
yurenju Jul 26, 2014
3099bf5
Revert "XD fixed facebook picture error and minor css/html issue"
yurenju Jul 26, 2014
7bb231c
; ) visualization on friend list
john-hu Jul 26, 2014
e564836
XD use relative path of json file
john-hu Jul 26, 2014
80f3ddb
-___________- calculate the font-size dynamically
john-hu Jul 26, 2014
d7740c2
add emoticon cube
yurenju Jul 26, 2014
8cbbb5f
random cube transition
yurenju Jul 26, 2014
7cc78be
>///< use new friends layout
john-hu Jul 26, 2014
6da9d0f
change color of first page
yurenju Jul 26, 2014
05cf913
add design folder
dkope2001 Jul 26, 2014
7d9e74b
\o/ remove debugger and fix the hover issue
john-hu Jul 26, 2014
a3e2a34
>\\\< hope this works
john-hu Jul 26, 2014
4270421
move design folder to root directory
yurenju Jul 26, 2014
4c6e0a3
update first page design
yurenju Jul 26, 2014
9de3658
冏rz transition and show myself
john-hu Jul 26, 2014
2e49b9c
:D change the new location
john-hu Jul 26, 2014
c3bacfa
Orz make the 3d cube work
john-hu Jul 26, 2014
5b4efab
changed canvas background color
yurenju Jul 26, 2014
5574751
XD fix regression
john-hu Jul 26, 2014
4ca8615
move facebook botton position
yurenju Jul 26, 2014
2d319b7
change cube position for second page
yurenju Jul 26, 2014
c76ff8e
add back button to banner page
yurenju Jul 26, 2014
0688ee8
:-8 enlarge animation
john-hu Jul 26, 2014
0a1d103
add btn
dkope2001 Jul 26, 2014
3c0c433
Merge branch 'master' of https://github.com/XDDDDD/xd
dkope2001 Jul 26, 2014
0360342
XD fixed facebook photo and scores bug!!
mpizza Jul 26, 2014
c4c70d2
:( remove comment id
mpizza Jul 26, 2014
651053d
click name then jump to wordcloud
yurenju Jul 26, 2014
2cba726
scroll to friendlist
yurenju Jul 26, 2014
a909a78
:) normalize text
mpizza Jul 26, 2014
0d022d0
:) add friend avatar
mpizza Jul 26, 2014
c68f878
冏rz load icon
john-hu Jul 26, 2014
602dae7
add hover function
yurenju Jul 26, 2014
ecb8202
update scroll button
dkope2001 Jul 26, 2014
726095c
Merge branch 'master' of https://github.com/XDDDDD/xd
dkope2001 Jul 26, 2014
5613cdf
:P add friendWrapper section
mpizza Jul 26, 2014
659c4b6
commit again
dkope2001 Jul 26, 2014
dc9b818
:) move style to xd.css
mpizza Jul 26, 2014
3c0385e
update
dkope2001 Jul 26, 2014
b2faa85
:) fix conflict
dkope2001 Jul 26, 2014
d1398f8
move cube box and add back to friend list button
john-hu Jul 26, 2014
77dc4dd
implement click event for wordcloud
yurenju Jul 26, 2014
643436a
adjust canvas position again
yurenju Jul 26, 2014
7469664
add wordcloud-break to hack for position
yurenju Jul 26, 2014
c7045e7
add smooth scrolling for all page transition
yurenju Jul 26, 2014
b5b2d7d
fb comment
dkope2001 Jul 26, 2014
a3426df
fb comment
dkope2001 Jul 26, 2014
eb23ba0
Merge branch 'master' of https://github.com/XDDDDD/xd
dkope2001 Jul 26, 2014
e0f6b8f
\0/ almost
john-hu Jul 26, 2014
fe2e84f
make cube spin
yurenju Jul 26, 2014
5a71052
auto querier
john-hu Jul 26, 2014
f5be86f
spin faster for loading
yurenju Jul 26, 2014
5b01d76
change token after the 5th query
john-hu Jul 26, 2014
74a96df
tem
mpizza Jul 26, 2014
2e2eb88
:) facebook comment ver1.0
mpizza Jul 26, 2014
d97692f
:) bind keyword function
mpizza Jul 26, 2014
0cd4b07
XD fix bug
mpizza Jul 26, 2014
51b850e
remove spin if back to banner
yurenju Jul 26, 2014
afbaf30
add color transition for loading
yurenju Jul 26, 2014
52b580b
fix regession
john-hu Jul 26, 2014
322a31f
arrange canvas position again
yurenju Jul 26, 2014
95b7df6
add more detail to facebook comment
mpizza Jul 26, 2014
064325a
:D remove cat
mpizza Jul 26, 2014
0f58363
add title for details
yurenju Jul 26, 2014
80541ca
update comment !
dkope2001 Jul 26, 2014
ba33991
add title for details
yurenju Jul 26, 2014
475c745
adjust distance
dkope2001 Jul 26, 2014
932922b
add color
mpizza Jul 26, 2014
01c4310
align circle font height
yurenju Jul 26, 2014
abda9a8
Merge branch 'master' into gh-pages
yurenju Jul 26, 2014
cb72e47
XD fine tune
mpizza Jul 26, 2014
70ee870
XD fine tune
mpizza Jul 26, 2014
cdd24ec
\o/ Add circle animation
mpizza Jul 26, 2014
8fd04ef
\o/ Add circle animation
mpizza Jul 26, 2014
3b2a319
\o/ add youtube link
mpizza Jul 26, 2014
7147775
Merge branch 'xd-master' into gh-pages
mpizza Jul 26, 2014
0cad65a
clean code
yurenju Jul 27, 2014
cb9a54a
remove execute permission for template.html
yurenju Jul 27, 2014
ac01bae
disable hover if it's not a emtion
yurenju Jul 27, 2014
687460a
clear canvas if use for another person
yurenju Jul 27, 2014
c7a13cf
add firefox logo and some help text
yurenju Jul 27, 2014
2367b38
add cover for opengraph
yurenju Jul 27, 2014
df8b49a
add slash for trail
yurenju Jul 27, 2014
0a21d3a
updated cover.png
yurenju Jul 27, 2014
8cd026e
getMyFriend when first time login
yurenju Jul 27, 2014
0478737
fix canvas position issue
yurenju Jul 27, 2014
316fc05
:) add analytics user self.
mpizza Jul 28, 2014
dc9239c
XD add new word:'謝'
mpizza Jul 28, 2014
e00e7d2
\o/ fix emoji count less than 10 can not show up bug
mpizza Jul 28, 2014
970ae29
new avatar style 136x136 with 128x128 image.
john-hu Jul 29, 2014
d9db4f7
Merge pull request #2 from john-hu/new-avatar-style
john-hu Jul 29, 2014
dedca1b
use user avatar to show friend list.
john-hu Jul 29, 2014
167a603
Merge pull request #3 from john-hu/use-avatar-based-friend-list
john-hu Jul 29, 2014
147839e
fix regression to supply the correct arguments
john-hu Jul 29, 2014
44232f7
Merge pull request #4 from john-hu/regression-wrong-callback-arguments
john-hu Jul 29, 2014
551ffb3
add avatar hover animation
mpizza Jul 29, 2014
e65a1e6
Merge pull request #5 from mpizza/add_avatar_hover
mpizza Jul 29, 2014
f8c30e5
enlarge avatar when cursor hovers on top of it
john-hu Jul 30, 2014
cd3dddb
Merge pull request #6 from john-hu/enlarge-friend-avatar-on-hover
john-hu Jul 30, 2014
b62b9fe
hide name when cursor hovers on top of avatar.
john-hu Jul 30, 2014
cf8cec0
Merge pull request #7 from john-hu/hide-text-when-hover
john-hu Jul 30, 2014
1443f1c
:) change to large size avatar
mpizza Jul 30, 2014
60a46f4
Merge pull request #8 from mpizza/large_avatar
mpizza Jul 30, 2014
d86a130
:) add find friend feature
mpizza Jul 30, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory" : "vendor"
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
js/vars.js
node_modules
6 changes: 0 additions & 6 deletions .gitmodules

This file was deleted.

20 changes: 20 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "webapplate",
"description": "",
"homepage": "",
"keywords": [],
"author": "",
"license": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components"
],
"dependencies": {
"l20n": "1.0.0-rc",
"jquery": "2.1.1",
"wordfreq": "https://github.com/timdream/wordfreq.git",
"wordcloud2": "https://github.com/timdream/wordcloud2.js.git",
"color-thief": ""
}
}
12 changes: 0 additions & 12 deletions css/xd.css

This file was deleted.

Binary file added fonts/FontAwesome.otf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.eot
Binary file not shown.
504 changes: 504 additions & 0 deletions fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added images/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/comment_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/comment_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/firefox_logo-only_RGB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_camera_b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_camera_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_cloud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_fbLogin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_scroll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_spread.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_text_b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_text_s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_uparrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pic01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pic02.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pic03.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pic04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sample.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
191 changes: 191 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
<!DOCTYPE HTML>
<!--
Twenty 1.0 by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>^____^</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta property="og:title" content="XD 分析儀" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://xddddd.github.io/xd/" />
<meta property="og:image" content="http://xddddd.github.io/xd/images/cover.png" />
<!--[if lte IE 8]><script src="style/ie/html5shiv.js"></script><![endif]-->
<script src="vendor/d3/d3.min.js"></script>
<script src="vendor/jquery/dist/jquery.min.js"></script>
<script src="vendor/wordfreq/src/wordfreq.js"></script>
<script src="vendor/wordcloud2/src/wordcloud2.js"></script>
<script src="vendor/color-thief/dist/color-thief.min.js"></script>
<script src="js/jquery.dropotron.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/skel-layers.min.js"></script>
<script src="js/init.js"></script>
<script src="js/xd_calc.js"></script>
<script src="js/friendlist.js"></script>
<script src="js/vars.js"></script>
<script src="js/iii.js"></script>
<script src="js/fb.js"></script>
<noscript>
<link rel="stylesheet" href="style/skel.css" />
<link rel="stylesheet" href="style/style.css" />
<link rel="stylesheet" href="style/style-wide.css" />
<link rel="stylesheet" href="style/style-noscript.css" />
</noscript>
<!--[if lte IE 8]><link rel="stylesheet" href="style/ie/v8.css" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="style/ie/v9.css" /><![endif]-->
<link href="style/hackathon.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style/friend-list.css" />
<link rel="stylesheet" type="text/css" href="style/xd.css" />
</head>
<body class="index loading">

<!-- Header -->
<header id="header" class="alt">
<h1 id="logo"><a href="index.html">^_____^</span></a></h1>
<nav id="nav">
Only tested on <img height="20px" src="images/firefox_logo-only_RGB.png" /> <strong>Firefox Browser</strong>.
</nav>
</header>

<!-- Banner -->
<section id="banner">

<!--
".inner" is set up as an inline-block so it automatically expands
in both directions to fit whatever's inside it. This means it won't
automatically wrap lines, so be sure to use line breaks where
appropriate (<br />).
-->
<div class="inner">
<section class="cube-container">
<div id="cube-outer">
<div id="cube">
<figure class="front"></figure>
<figure class="back"></figure>
<figure class="right"></figure>
<figure class="left"></figure>
<figure class="top"></figure>
<figure class="bottom"></figure>
</div>
</div>
</section>
<footer>

<ul class="buttons vertical">
<li><a id="tell-me-more" href="#friendlist-container" class="button fit scrolly">Tell Me More</a></li>
<li>
<a class="btn_fblogin" id="fblogin" title="button hideItem Fackbook Login">
<div></div>
<p>Login with Facebook</p>
</a>
</li>
</ul>
<a id="change-face" class="btn_faceChange" title="Change Face">
<div></div>
<p>Change Face</p>
</a>
</footer>

</div>

</section>

<!-- Main -->
<article id="main">

<header class="special container">
<!-- <span class="icon fa-bar-chart-o"></span> -->
<h2>Friend List</h2>
</header>
<!-- Friend List -->
<section class="wrapper style2 container special-alt">

<div class="row half">
<input id="friendSearch" type="text" value=""/>
<!-- <button class="button fit scrolly" type="button" id="searchFriendBT">Search</button> -->
<div id="friendlist-container">
<a id="back-to-banner" class="scrolly btn_back btn_uparrow" href="#banner" title="Back to account"></a>
<div id="friendlist">
</div>
</div>
</div>
</section>

<section id="wordcloud-break">
</section>

<!-- World Cloud -->
<section id="wordcloud" class="wrapper style2 container special-alt">

<div id="wordcloud-container" class="row half">
<a id="back-to-friend-list" class="scrolly btn_back btn_uparrow" href="#friendlist-container" title="Back to friend list"></a>
<button type="button" id="getBT" class="button hideItem"> go wordscloud </button>
<div id="feeds" class="hideItem"></div>
<canvas height="700" width="1024" style="" id="wc-canvas-canvas" lang=""></canvas>
<div id="wc-canvas-hover" hidden>
<span id="wc-canvas-hover-label"></span>
</div>
</div>
</section>

<!-- Search Result -->
<section id="friendWrapper" class="wrapper style3 container special">

<header class="friendInfoBoxHeader">
<div id="friendInfoBox" class="avatar">
<div id="friendAvatar" class="avatar-image"></div>
<p id="friendName" class="avatar-name"></p>
</div>
<p class="fb_wording">
<span id="fb_keyword"></span>
<span>X <span id="fb_count"></span> msg</span>
</p>
<div id="related-ptt" class="related-ptt"></div>
<h2></h2>
<p></p>
</header>
</section>
<section class="wrapper style2 container special-alt">
<div class="row half">
<a id="back-to-wordcloud" class="scrolly btn_back btn_uparrow" href="#wordcloud" title="Back to wordcloud"></a>
<input id="xdSearch" type="text" style="display:none"/><br/>
<button type="button" id="searchBT" class="button" style="display:none"> search </button>
<div id="result">
<ul id="comment_wrap">
</ul>
</div>
</div>
<a id="back-to-friendWrapper" style="display:none;" class="scrolly btn_back btn_uparrow" href="#friendWrapper" title="Back to friend Wrapper"></a>
</section>

</article>

<!-- Footer -->
<footer id="footer">

<ul class="icons">
<!-- <li><a href="#" class="icon circle fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="#" class="icon circle fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon circle fa-google-plus"><span class="label">Google+</span></a></li>
-->
<li>
<a href="http://youtu.be/x9XohKDmtAA" class="icon circle fa-youtube" target="_blank">
<span class="label">Youtube</span></a>
</li>
<li>
<a href="https://github.com/XDDDDD/xd" class="icon circle fa-github" target="_blank">
<span class="label">Github</span></a>
</li>
<!-- <li><a href="#" class="icon circle fa-dribbble"><span class="label">Dribbble</span></a></li> -->
</ul>

<span class="copyright">&copy; Untitled. All rights reserved. Design: <a href="http://html5up.net">HTML5 UP</a>.</span>

</footer>

</body>
</html>
41 changes: 41 additions & 0 deletions js/app_installer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
(function() {
'use strict';
/**
* check if Firefox webapp is installed
*
* @class Installer
*/
if (navigator.mozApps !== undefined) {
var appStat = navigator.mozApps.getSelf();
appStat.onsuccess = function() {
if (appStat.result) {
//instsalled
var installed = navigator.mozApps.getInstalled();
installed.onsuccess = function() {
if (installed.result.manifest.version !==
appStat.result.manifest.version) {
console.log('install update version');
navigator.mozApps.install();
}
};
} else {
// not installed
var manifestUrl = location.href.substring(0,
location.href.lastIndexOf('/')) + '/manifest.webapp';

var appInstall = navigator.mozApps.install(manifestUrl);
appInstall.onsuccess = function() {
console.log('successful installed');
};
appInstall.onerror = function() {
console.log('not installed');
};
}
};
appStat.onerror = function() {
alert('Error checking installation status: ' + this.error.message);
};
} else {
console.log('WebApp is not supported');
}
}());
14 changes: 14 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Only used in Chrome Apps
*
* @class Background
*/
chrome.app.runtime.onLaunched.addListener(function() {
'use strict';
chrome.app.window.create('../index.html', {
'bounds': {
'width': 320,
'height': 480
}
});
});
11 changes: 11 additions & 0 deletions js/fallback.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(function() {
'use strict';

// Reload content
var reload = document.querySelector('#reload');
if (reload) {
reload.onclick = function() {
location.reload(true);
};
}
}());
Loading