Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
linkedin-public-profile
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mbas
linkedin-public-profile
Commits
708b942d
Commit
708b942d
authored
May 12, 2016
by
Vitalik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for HRUST
parent
63ffe688
Pipeline
#213
skipped
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
4 deletions
+29
-4
certifications.js
src/analyse-parts/certifications.js
+19
-0
skills.js
src/analyse-parts/skills.js
+4
-4
analyser.js
src/analyser.js
+1
-0
profile.js
src/profile.js
+5
-0
No files found.
src/analyse-parts/certifications.js
0 → 100644
View file @
708b942d
var
certificationsAnalysis
=
function
(
$
,
profile
)
{
// Education
profile
.
certifications
=
[];
$
(
'#certifications .certifications .certification'
).
each
(
function
()
{
var
$item
=
$
(
this
);
var
item
=
{
title
:
$item
.
find
(
'.item-title'
).
text
(),
subtitle
:
$item
.
find
(
'.item-subtitle'
).
text
(),
url
:
$item
.
find
(
'.item-title a'
).
prop
(
'href'
),
logo
:
$item
.
find
(
'.logo img'
).
data
(
'delayed-url'
),
date
:
$item
.
find
(
'.date-range'
).
text
(),
};
profile
.
certifications
.
push
(
item
);
});
return
profile
;
};
module
.
exports
=
certificationsAnalysis
;
src/analyse-parts/skills.js
View file @
708b942d
var
skillsAnalysis
=
function
(
$
,
profile
)
{
// Skills
profile
.
skills
=
[];
$
(
'#skills .pills li'
).
each
(
function
()
{
var
$skill
=
$
(
this
);
var
more
=
$skill
.
hasClass
(
'see-more'
);
var
less
=
$skill
.
hasClass
(
'see-less'
);
var
skill
=
$skill
.
text
();
if
(
!
more
&&
!
less
)
{
profile
.
skills
.
push
(
{
name
:
$skill
.
text
()
}
);
if
(
skill
.
match
(
/see/ig
)
==
null
)
{
profile
.
skills
.
push
(
skill
);
}
});
...
...
src/analyser.js
View file @
708b942d
...
...
@@ -11,6 +11,7 @@ var analyse = function (window, url) {
.
positions
()
.
skills
()
.
educations
()
.
certifications
()
.
clean
();
links
=
linkedPeople
(
$
);
...
...
src/profile.js
View file @
708b942d
...
...
@@ -5,6 +5,7 @@ var featuredAnalysis = require('./analyse-parts/featured');
var
positionsAnalysis
=
require
(
'./analyse-parts/positions'
);
var
skillsAnalysis
=
require
(
'./analyse-parts/skills'
);
var
educationsAnalysis
=
require
(
'./analyse-parts/educations'
);
var
certificationsAnalysis
=
require
(
'./analyse-parts/certifications'
);
class
Profile
{
constructor
(
$
)
{
...
...
@@ -31,6 +32,10 @@ class Profile {
return
educationsAnalysis
(
this
.
$
,
this
);
}
certifications
()
{
return
certificationsAnalysis
(
this
.
$
,
this
);
}
clean
()
{
delete
this
.
$
;
return
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment