Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
WestCoastSwing
/
RelativePlacement
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
5e1e3bc5
...
5e1e3bc5b3413497c17943f037d8588ff5fea06b
authored
2017-01-05 00:29:56 +0100
by
Vincent Peybernes
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
!3
1.0.0
* fixes: Fix README
#12
The angular module is not define when it use under Electron app
2 parents
be823fdb
91ed5782
Pipeline
#52
for
5e1e3bc5
passed
in 3 minutes 41 seconds
Changes
4
Pipelines
2
Builds
7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
CHANGELOG.md
README.md
lib/relative-placement.js
package.json
CHANGELOG.md
View file @
5e1e3bc
## [1.0.0] - 2017-01-05
*
Fix Angular export on Electron app
*
Fix README
## [0.1.0] - 2016-12-10
*
Fix browser import
...
...
@@ -7,5 +11,6 @@
*
Add readme and licence
*
Add export management
[
1.0.0
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...v1.0.0
[
0.1.0
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0
[
0.1.0-rc
]:
http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc
\ No newline at end of file
...
...
README.md
View file @
5e1e3bc
...
...
@@ -12,7 +12,7 @@ of each candidates.
The algorithm consist to search for each place a majority of votes for a candidate at this
placement or a greater placement.
You can refer to
[
this explain from boogiebythebay.org
][
1
]
for all
the
details.
You can refer to
[
this explain from boogiebythebay.org
][
1
]
for all details.
## Get RelativePlacementJS
```
shell
...
...
@@ -25,7 +25,7 @@ var RelativePlacement = require('relative-placement-js');
With browser:
```
html
<script
src=
"{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement.js"
></script>
<script
src=
"{BASE_PATH}/node_modules/relative-placement-js/dist/relative-placement
-es2015
.js"
></script>
<!-- Or the original ES6 sources -->
<script
src=
"{BASE_PATH}/node_modules/relative-placement-js/lib/relative-placement.js"
></script>
```
...
...
lib/relative-placement.js
View file @
5e1e3bc
...
...
@@ -8,11 +8,12 @@
if
(
typeof
global
!=
'undefined'
&&
typeof
module
!=
'undefined'
&&
module
.
exports
)
return
module
.
exports
=
definition
();
//Browser export
if
(
typeof
window
!=
'undefined'
){
if
(
typeof
angular
!=
'undefined'
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
,
[]).
factory
(
'RelativePlacement'
,
definition
);
if
(
typeof
requirejs
!=
'undefined'
)
return
define
(
definition
());
window
.
RelativePlacement
=
definition
();
}
// Angular export
if
(
typeof
angular
!=
'undefined'
&&
angular
.
version
.
major
==
1
)
return
angular
.
module
(
'relative-placement-js'
,
[]).
factory
(
'RelativePlacement'
,
definition
);
})(
function
(){
/**
...
...
package.json
View file @
5e1e3bc
{
"name"
:
"relative-placement-js"
,
"version"
:
"
0.1
.0"
,
"version"
:
"
1.0
.0"
,
"description"
:
"JavaScript Relative Placement calculator for dance competitions."
,
"author"
:
{
"name"
:
"Techniv"
,
...
...
Please
register
or
sign in
to post a comment