Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves Issue #217 #369

Merged
merged 28 commits into from
Apr 16, 2022
Merged
Changes from 20 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2853ea9
Resolves issue #361 Updates spelling-mistakes
henilp105 Jan 17, 2022
8da3240
Merge pull request #1 from henilp105/henilp105-spelling-mistakes
henilp105 Jan 17, 2022
2bd4f3c
Resolves Issue #248
henilp105 Jan 17, 2022
c3dcfa3
Merge pull request #2 from henilp105/henilp105-spelling#248
henilp105 Jan 17, 2022
ee9727c
Update _data/learning.yml
henilp105 Jan 17, 2022
6f2930f
Merge branch 'fortran-lang:master' into master
henilp105 Jan 17, 2022
634e7fb
Resolves spelling mistake mentioned in #304
henilp105 Jan 17, 2022
162be22
Merge pull request #3 from henilp105/henilp105-spelling#304
henilp105 Jan 17, 2022
743505a
Merge branch 'fortran-lang:master' into master
henilp105 Jan 18, 2022
1d11969
Resolves Issue #217
henilp105 Jan 18, 2022
cb0b7fb
Merge pull request #4 from henilp105/henilp105-#217
henilp105 Jan 18, 2022
fcbab6b
update
henilp105 Jan 18, 2022
ddcac88
update
henilp105 Jan 18, 2022
b68ab45
Resolves issue #217
henilp105 Jan 18, 2022
b4fbc4e
Merge pull request #6 from henilp105/henilp105-patch#217
henilp105 Jan 18, 2022
a325937
Resolves Issue #217
henilp105 Jan 18, 2022
c435ab7
Merge pull request #7 from henilp105/henilp105-search-patch#217
henilp105 Jan 18, 2022
8f615e5
Resolves Issue #217
henilp105 Jan 19, 2022
29d8651
Resolves Issue #217
henilp105 Jan 19, 2022
46cf0d9
Resolves Issue #217
henilp105 Jan 19, 2022
4cb8a01
Merge branch 'fortran-lang:master' into master
henilp105 Feb 25, 2022
28236fe
Merge branch 'fortran-lang:master' into master
henilp105 Apr 7, 2022
adaa973
Update package_search.js
henilp105 Apr 14, 2022
b823fd3
Update package_search.js
henilp105 Apr 14, 2022
b95d84c
Update assets/js/package_search.js
henilp105 Apr 15, 2022
cf988b2
Merge branch 'fortran-lang:master' into master
henilp105 Apr 15, 2022
40f8370
Update package_search.js
henilp105 Apr 15, 2022
4f06a12
Update fortranlang.js
henilp105 Apr 15, 2022
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
16 changes: 13 additions & 3 deletions assets/js/package_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@
fortranLang.loadJSON(fortranLang.baseurl+'/packages/package_index.json', search);

}



function search(data){
// Called after json data is loaded
//

projects = data.projects;

// Get search string
var queryString = fortranLang.findGetParameter('query').replace(/\+/g," ").replace(/"/g,'');
var query = window.location.href.split('+').join(' ');

var tokens,queryString,
re = /[?&]?([^=]+)=([^&]*)/g;


while (tokens = re.exec(query)) {
queryString = decodeURIComponent(tokens[2]);
}


document.getElementById('search-query').value = queryString;

results = searchProjects(queryString,projects);
Expand Down