@@ -244,73 +244,198 @@ <h1 class="mb-3">A BlissLabs Project</h1>
244244 </ div >
245245 <!---------------->
246246 < script >
247- $ . ajax ( {
248- type : "GET" ,
249- url : "https://api.blissroms.org/api/allprojects" ,
250- contentType : "application/json" ,
251- datatype : "json" ,
252- data : { } ,
253- success : function ( data ) {
254- var newContent = "" ; // Variable to hold HTML
255- for ( var i = 0 ; i < data . length ; i ++ ) {
256- // Loop through object
257- if ( data [ i ] . project != null ) {
258- if ( i == 0 ) {
259- newContent += '<div class="carousel-item active">' ;
260- } else {
261- newContent += '<div class="carousel-item">' ;
262- }
263- newContent +=
264- '<img class="d-block img-fluid" src="' +
265- data [ i ] . project_avatar +
266- '" style="max-width: auto; height: 350px;"' ;
267- newContent +=
268- 'alt="' +
269- data [ i ] . project +
270- ' " style="padding-top: 1.5rem;"/>' ;
271- newContent +=
272- '<div class="carousel-caption" style="background: linear-gradient(#343a40 10%, #343a40 100%)!important; padding-top: 120px; margin-left: 350px; ">' ;
273- <!-- newContent += '<div class="item-details">'; -->
274- newContent +=
275- '<h3 class="zxc" ><b style="font-size: xx-large;">' +
276- data [ i ] . project +
277- "</b></h3>" ;
278- newContent +=
279- '<h5 class="zxc" >Project Lead: ' +
280- data [ i ] . project_lead +
281- "</h5>" ;
282- newContent +=
283- '<p class="card__text zxc" style=" margin-right: 1.7rem; margin-left: 1.7rem; ">' +
284- data [ i ] . project_description +
285- "</p>" ;
286- if ( data [ i ] . project_github != null ) {
287- newContent +=
288- '<a href="' +
289- data [ i ] . project_github +
290- '" target="_blank"><i class="fab fa fa-git p-2" style="font-size: 300%;"></i></a>' ;
291- }
292- if ( data [ i ] . project_website != null ) {
293- newContent +=
294- '<a href="' +
295- data [ i ] . project_website +
296- '" target="_blank"><i class="fab fa p-2 fa-globe" style="font-size: 300%;"></i></a>' ;
297- }
298- newContent += "</div>" ;
299- newContent += "</div>" ;
300- } else {
301- newContent = "NONE" ;
302- }
303- }
304- // Update the page with the new content
305- document . getElementById ( "carousel-slider" ) . innerHTML =
306- newContent ;
247+ const data = [
248+ {
249+ project : "Android-Generic" ,
250+ project_description :
251+ "Bringing Android ROMs to PCs and GSI devices everywhere. Simple to start, easy to use development toolkit. Go get your ROM on :)" ,
252+ project_lead : "Jon West" ,
253+ project_avatar :
254+ "https://internal.blisslabs.org/storage/2/61ca77196da33_android-generic.png" ,
255+ project_website : "https://android-generic.github.io" ,
256+ project_github :
257+ "https://gitlab.com/android-generic/vendor_android-generic" ,
258+ twitter : null ,
259+ instagram : null ,
260+ facebook : null ,
261+ donation : null ,
262+ primary_download : null ,
263+ secondary_download : null ,
264+ third_download : null ,
265+ } ,
266+ {
267+ project : "BlissOS" ,
268+ project_description :
269+ "Bliss OS brings all the features and options of Bliss ROM to your PC, tablet, chromebook and mackbook. and is available in many different configurations." ,
270+ project_lead : "HMTheBoy154" ,
271+ project_avatar :
272+ "https://internal.blisslabs.org/storage/4/61ca783b236fb_blissos.png" ,
273+ project_website : "https://blissos.org" ,
274+ project_github : "https://github.com/BlissRoms-x86" ,
275+ twitter : "https://twitter.com/blissos_org" ,
276+ instagram : null ,
277+ facebook : null ,
278+ donation : null ,
279+ primary_download : null ,
280+ secondary_download : null ,
281+ third_download : null ,
282+ } ,
283+ {
284+ project : "boringdroid" ,
285+ project_description :
286+ "boringdroid is a boring project to provide patch set to run multi-window on low version AOSP." ,
287+ project_lead : "utzcoz" ,
288+ project_avatar :
289+ "https://internal.blisslabs.org/storage/5/61ca7893cf9b5_boringdroid.png" ,
290+ project_website : "https://boringdroid.github.io/" ,
291+ project_github : "https://github.com/boringdroid" ,
292+ twitter : null ,
293+ instagram : null ,
294+ facebook : null ,
295+ donation : null ,
296+ primary_download : null ,
297+ secondary_download : null ,
298+ third_download : null ,
299+ } ,
300+ {
301+ project : "Supreme Gamers" ,
302+ project_description :
303+ "Android-x86 Gaming Community and creators of Gearlock Recovery for Android-x86 based projects" ,
304+ project_lead : "AXON" ,
305+ project_avatar :
306+ "https://internal.blisslabs.org/storage/6/61ca78df1b27d_SG_Asset_2.png" ,
307+ project_website : "https://supreme-gamers.com/" ,
308+ project_github : "https://github.com/AXIM0S/gearlock" ,
309+ twitter : null ,
310+ instagram : null ,
311+ facebook : null ,
312+ donation : null ,
313+ primary_download : null ,
314+ secondary_download : null ,
315+ third_download : null ,
316+ } ,
317+ {
318+ project : "Waydroid" ,
319+ project_description :
320+ "Waydroid uses a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu." ,
321+ project_lead : "Erfan Abdi" ,
322+ project_avatar :
323+ "https://internal.blisslabs.org/storage/7/61ca792708e70_waydroid.png" ,
324+ project_website : "https://waydro.id/" ,
325+ project_github : "https://github.com/waydroid" ,
326+ twitter : null ,
327+ instagram : null ,
328+ facebook : null ,
329+ donation : null ,
330+ primary_download : null ,
331+ secondary_download : null ,
332+ third_download : null ,
307333 } ,
308- error : function ( jqXHR , status , err ) {
309- newContent = "ERROR: NONE" ;
310- document . getElementById ( "carousel-slider" ) . innerHTML =
311- newContent ;
334+ {
335+ project : "BlissRoms" ,
336+ project_description :
337+ "A fully featured replacement OS for your Android device based off AOSP, bringing many customizations, features, and optimizations to your device." ,
338+ project_lead : "Jackeagle" ,
339+ project_avatar :
340+ "https://internal.blisslabs.org/storage/22/61d7219cb5906_Frame-101.png" ,
341+ project_website : "https://blissroms.org" ,
342+ project_github : "https://github.com/BlissRoms" ,
343+ twitter : "https://twitter.com/Bliss_ROMs" ,
344+ instagram : "https://www.instagram.com/blissroms/?hl=en" ,
345+ facebook : null ,
346+ donation : null ,
347+ primary_download : "https://downloads.blissroms.org" ,
348+ secondary_download :
349+ "https://sourceforge.net/projects/blissroms/files/" ,
350+ third_download : null ,
312351 } ,
313- } ) ;
352+ {
353+ project : "XtMapper" ,
354+ project_description :
355+ "XtMapper, a free and open source keymapper." ,
356+ project_lead : "Xtr126" ,
357+ project_avatar :
358+ "https://internal.blisslabs.org/storage/32/655ced9f6ec02_XtMapper.png" ,
359+ project_website : "https://xtr126.github.io/XtMapper-docs/" ,
360+ project_github : "https://github.com/Xtr126/XtMapper" ,
361+ twitter : null ,
362+ instagram : null ,
363+ facebook : null ,
364+ donation : null ,
365+ primary_download : null ,
366+ secondary_download : null ,
367+ third_download : null ,
368+ } ,
369+ {
370+ project : "Smart Dock" ,
371+ project_description :
372+ "A user-friendly desktop mode launcher that offers a modern and customizable user interface" ,
373+ project_lead : "axel358" ,
374+ project_avatar :
375+ "https://internal.blisslabs.org/storage/33/655cedde3fca3_ic_launcher.png" ,
376+ project_website : "https://github.com/axel358/smartdock" ,
377+ project_github : "https://github.com/axel358/smartdock" ,
378+ twitter : null ,
379+ instagram : null ,
380+ facebook : null ,
381+ donation : null ,
382+ primary_download : null ,
383+ secondary_download : null ,
384+ third_download : null ,
385+ } ,
386+ ] ;
387+ var newContent = "" ; // Variable to hold HTML
388+ for ( var i = 0 ; i < data . length ; i ++ ) {
389+ // Loop through object
390+ if ( data [ i ] . project != null ) {
391+ if ( i == 0 ) {
392+ newContent += '<div class="carousel-item active">' ;
393+ } else {
394+ newContent += '<div class="carousel-item">' ;
395+ }
396+ newContent +=
397+ '<img class="d-block img-fluid" src="' +
398+ data [ i ] . project_avatar +
399+ '" style="max-width: auto; height: 350px;"' ;
400+ newContent +=
401+ 'alt="' +
402+ data [ i ] . project +
403+ ' " style="padding-top: 1.5rem;"/>' ;
404+ newContent +=
405+ '<div class="carousel-caption" style="background: linear-gradient(#343a40 10%, #343a40 100%)!important; padding-top: 120px; margin-left: 350px; ">' ;
406+ <!-- newContent += '<div class="item-details">'; -->
407+ newContent +=
408+ '<h3 class="zxc" ><b style="font-size: xx-large;">' +
409+ data [ i ] . project +
410+ "</b></h3>" ;
411+ newContent +=
412+ '<h5 class="zxc" >Project Lead: ' +
413+ data [ i ] . project_lead +
414+ "</h5>" ;
415+ newContent +=
416+ '<p class="card__text zxc" style=" margin-right: 1.7rem; margin-left: 1.7rem; ">' +
417+ data [ i ] . project_description +
418+ "</p>" ;
419+ if ( data [ i ] . project_github != null ) {
420+ newContent +=
421+ '<a href="' +
422+ data [ i ] . project_github +
423+ '" target="_blank"><i class="fab fa fa-git p-2" style="font-size: 300%;"></i></a>' ;
424+ }
425+ if ( data [ i ] . project_website != null ) {
426+ newContent +=
427+ '<a href="' +
428+ data [ i ] . project_website +
429+ '" target="_blank"><i class="fab fa p-2 fa-globe" style="font-size: 300%;"></i></a>' ;
430+ }
431+ newContent += "</div>" ;
432+ newContent += "</div>" ;
433+ } else {
434+ newContent = "NONE" ;
435+ }
436+ }
437+ // Update the page with the new content
438+ document . getElementById ( "carousel-slider" ) . innerHTML = newContent ;
314439 </ script >
315440 <!---------------->
316441 </ div >
0 commit comments