File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,11 @@ function showDial(data){
211211 userName . innerHTML = data . owner . name ;
212212 userSM . innerHTML = '' ;
213213 if ( 'social' in data ) {
214+ let count = 0 ;
214215 for ( s in data . social ) {
216+ count ++ ;
217+ if ( count > 5 ) //utmost 5 social links to display
218+ break ;
215219 userSM . innerHTML += `<a href="${ ( ! data . social [ s ] . startsWith ( 'http' ) ?'https://' :'' ) + sanitize ( data . social [ s ] ) } " alt="user-sm" target="_blank"><i class="${ sanitize ( s ) } dial-share"></i></a>` ;
216220 }
217221 }
@@ -222,7 +226,11 @@ function showDial(data){
222226 if ( "my_top_resources" in data ) {
223227 userResourceContainer . classList . remove ( 'hidden' ) ;
224228 userResource . innerHTML = '' ;
229+ let count = 0 ;
225230 for ( res in data . my_top_resources ) {
231+ count ++ ;
232+ if ( count > 3 ) //utmost 3 resource to display
233+ break ;
226234 userResource . innerHTML += `<li><a href="${ ( ! data . my_top_resources [ res ] . startsWith ( 'http' ) ?'http://' :'' ) + sanitize ( data . my_top_resources [ res ] ) } " alt="my top resources" target="_blank">${ sanitize ( res ) } </a></li>` ;
227235 }
228236 } else {
Original file line number Diff line number Diff line change 5757 window . $docsify = {
5858 homepage : 'readme.md' ,
5959 name : 'Docs - First Accord' ,
60- repo : 'https://github.com/STICKnoLOGIC/First-Accord' ,
60+ repo : 'https://github.com/STICKnoLOGIC/First-Accord-Docs ' ,
6161 loadSidebar :true ,
6262 subMaxLevel : 3 ,
6363 alias : {
You can’t perform that action at this time.
0 commit comments