Skip to content

Commit

Permalink
Add events #6
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan-b committed Jun 28, 2018
1 parent c0ceda7 commit 2f51905
Show file tree
Hide file tree
Showing 792 changed files with 26,320 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h2 class=""> Thanks for submitting your response!<i class="material-icons mediu
<script type="text/javascript" src="static/materialize/js/materialize.min.js"></script>
<script src = "js/main.js"></script>
<script data-cfasync="false" type="text/javascript" src="js/form-handler.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.8.6/showdown.min.js"></script>
<script type="text/javascript" src="static/showdown/dist/showdown.min.js"></script>
<script>
$(document).ready(function(){
$('.modal').modal();
Expand Down
2 changes: 0 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ $(document).ready(function(){
break;
}
$('#repos').append(`
<div class="col s12 m6">
<div class="card hoverable blue-grey darken-1">
<a target = "_blank" href="https://github.com/${username}/${repo.name}" class="btn-floating halfway-fab waves-effect waves-light red"><i class="material-icons">chevron_right</i></a>
Expand All @@ -157,7 +156,6 @@ $(document).ready(function(){
</div>
</div>
</div>
`);
});
});
Expand Down
40 changes: 40 additions & 0 deletions static/showdown/.appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# branches to build
#branches:
# whitelist
#only:
# - master

# What combinations to test
environment:
matrix:
- nodejs_version: "6"
platform: x64
- nodejs_version: "6"
platform: x86
- nodejs_version: "8"
platform: x86
- nodejs_version: "8"
platform: x64
- nodejs_version: "10"
platform: x64

install:
# Use version based on tag
- ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
- ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER"

# install node
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version

# install grunt-cli globally
- npm install -g grunt-cli
# install modules
- npm install

test_script:
# Output useful info for debugging
- node --version && npm --version

# Don't actually build.
build: off
15 changes: 15 additions & 0 deletions static/showdown/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[*.js]
indent_style = space
indent_size = 2
continuation_indent_size = 2
insert_final_newline = true
quote_type = single
space_after_anonymous_functions = true
space_after_control_statements = true
spaces_around_operators = true
trim_trailing_whitespace = true
spaces_in_brackets = false
curly_bracket_next_line = true
indent_brace_style = 1TBS
end_of_line = lf
charset = utf-8
27 changes: 27 additions & 0 deletions static/showdown/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"rules": {
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": 2}],
"curly": [2, "all"],
"operator-linebreak": [2, "after"],
"camelcase": [2, {"properties": "never"}],
"quotes": [2, "single"],
"no-multi-str": 2,
"no-mixed-spaces-and-tabs": 2,
"no-trailing-spaces": 2,
"space-unary-ops": [2,
{
"nonwords": false,
"overrides": {}
}
],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"keyword-spacing": [2, {}],
"space-infix-ops": 2,
"space-before-blocks": [2, "always"],
"eol-last": 2,
"space-before-function-paren": [2, "always"],
"array-bracket-spacing": [2, "never", {"singleValue": false}],
"space-in-parens": [2, "never"],
"no-multiple-empty-lines": 2
}
}
26 changes: 26 additions & 0 deletions static/showdown/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Exports for git archive
/test export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.eslintrc.json export-ignore
.jshintignore export-ignore
.jshintrc export-ignore
.travis.yml export-ignore
.appveyor.yml export-ignore
bower.json
Gruntfile.js export-ignore
performance.* export-ignore

# Line endings control
CHANGELOG.md text
CONTRIBUTING.md text
CREDITS.md text
license.txt text

# Force LF on js files
*.js text eol=lf

# Force binary mode on bin dir and dist fir
bin/* binary
dist/* binary
6 changes: 6 additions & 0 deletions static/showdown/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/
.build/
.DS_Store
node_modules
npm-debug.log
/*.test.*
5 changes: 5 additions & 0 deletions static/showdown/.jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Gruntfile.js
dist/**/*.js
build/**/*.js
src/options.js
bin/*
29 changes: 29 additions & 0 deletions static/showdown/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"quotmark": "single",
"undef": false,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"onevar": true,
"globals": {
"angular": true,
"module": true,
"define": true,
"window": true,
"document": true,
"showdown": true
}
}
26 changes: 26 additions & 0 deletions static/showdown/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js
node_js:
- "6"
- "8"
- "10"

before_install:
- npm install -g grunt-cli

#travis build speed up
sudo: false
cache:
directories:
- node_modules

# scripts
script: grunt test

# hooks
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/e369617839852624aa69
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
Loading

0 comments on commit 2f51905

Please sign in to comment.