Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
microintel authored Sep 1, 2024
1 parent 26791e5 commit 6a6d158
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 6 deletions.
15 changes: 9 additions & 6 deletions home.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,11 @@ document.getElementById('cmts').src="https://img.icons8.com/?size=100&id=2837&fo

}


let infi=2;
let infi=10000;
async function loadimg(){
let fetd= await fetch("https://api.github.com/repos/microintel/endgram/contents/photo");

let fetd= await fetch("https://api.github.com/repos/microintel/Resources/contents/photo");
let con=await fetd.json();
document.getElementById('load').style.display='none';

const max = parseInt(con.length-2);
const unar = [];
Expand Down Expand Up @@ -80,13 +79,13 @@ let xxd=`
<span><img src="https://img.icons8.com/?size=100&id=102729&format=png&color=FFFFFF" width="25px" height="25px"></span>
<br><br>
</div>
<img class="skeleton-loader" src="${imglike}" loading="lazy">
<img class="boi" src="${imglike}">
<div class="deta">
<div><span style="opacity:1.0;"><img style="opacity:1.0;" src="https://img.icons8.com/?size=100&id=87&format=png&color=FFFFFF" width="25px" onclick="this.src='https://img.icons8.com/?size=100&id=uG-gOKWvvi8T&format=png&color=000000'" height="25px"></span><span><img style="border-radius:1px;" src="https://img.icons8.com/?size=100&id=HtMJD4UUPVM3&format=png&color=FFFFFF" width="25px" height="25px"></span><span><img style="border-radius:1px;" src="https://img.icons8.com/?size=100&id=12582&format=png&color=FFFFFF" name="${imglike}" onclick="navigator.share({url:this.name});" width="21px" height="21px"></span>
</div>
<a href="${imgdown}" download><span><img src="https://img.icons8.com/?size=100&id=gbp6jdMV7Uzb&format=png&color=FFFFFF" onclick="this.src='https://img.icons8.com/?size=100&id=7690&format=png&color=FA5252'" width="25px" height="25px"></span></a>
<a href="${imgnam}" download><span><img src="https://img.icons8.com/?size=100&id=gbp6jdMV7Uzb&format=png&color=FFFFFF" onclick="this.src='https://img.icons8.com/?size=100&id=7690&format=png&color=FA5252'" width="25px" height="25px"></span></a>
</div>
<div class="det">
Expand All @@ -112,6 +111,10 @@ infi=infi-1;
}
loadimg();





function hi(){
document.getElementById('pari').style.opacity="1.0";
document.getElementById('con').style.display="none";
Expand Down
71 changes: 71 additions & 0 deletions pro.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
async function sloadimg(){
let fetd= await fetch("https://api.github.com/repos/microintel/Resources/contents/photo");

let con=await fetd.json();
let ranN=await Math.floor(Math.random()*parseInt(con.length));
// alert(ranN);
document.getElementById('proim').src=con[ranN]["download_url"];
document.getElementById('tpost').innerHTML=con.length+"<br>posts";
document.getElementById('tfol').innerHTML=ranN*15+"<br>followers";
document.getElementById('tflw').innerHTML=ranN*20+"<br>following";
document.getElementById('abbt').innerHTML=con[ranN]["sha"];
document.getElementById('loadd').style.display="none";



const max = parseInt(con.length-2);;
const unar = [];

while (unar.length <= max) {
const rann = Math.floor(Math.random() * (max + 1));
if (!unar.includes(rann)) {
unar.push(rann);
}
}


for(let xm in unar){

let imgli=con[unar[xm]]["download_url"];

let imgna=con[unar[xm]]["name"];

if (imgna == "xxx.html" || imgna == "index.html" || imgna == "home.html" || imgna == "home.css" || imgna == "home.js" || imgna == "pro.html" || imgna == "pro.css" || imgna == "pro.js" || imgna == "search.html" || imgna == "search.css" || imgna == "search.js" || imgna == "ctus.html") {
continue;
} else {
console.log("html files not included");
}

const pa = document.createElement("img");
pa.className ="imaggg";
pa.loading="lazy";
pa.src=imgli;
document.getElementById("po").appendChild(pa);
//document.getElementById("postt").innerHTML+=xxd;

}

}
sloadimg();

function fff(x){
document.getElementById('po').style.opacity="0.4";
document.getElementById('cat').style.opacity="0.4";
document.getElementById('esp').style.opacity="0.4";
document.getElementById('pf').style.opacity="0.4";
document.getElementById('idd').style.opacity="0.4";

document.getElementById('imm').src=x;
document.getElementById('con').style.display='block';

}

function hi(){
document.getElementById('po').style.opacity="1.0";
document.getElementById('cat').style.opacity="1.0";
document.getElementById('esp').style.opacity="1.0";
document.getElementById('pf').style.opacity="1.0";
document.getElementById('idd').style.opacity="1.0";
document.getElementById('con').style.display="none";
}

69 changes: 69 additions & 0 deletions search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
async function sloadimg(){
let fetd= await fetch("https://api.github.com/repos/microintel/Resources/contents/photo");
let con=await fetd.json();

const max = parseInt(con.length-2);;
const unar = [];

while (unar.length <= max) {
const rann = Math.floor(Math.random() * (max + 1));
if (!unar.includes(rann)) {
unar.push(rann);
}
}


for(let xm in unar){

let imglikee=con[unar[xm]]["download_url"];

let imgna=con[unar[xm]]["name"];


if (imgna == "xxx.html" || imgna == "index.html" || imgna == "home.html" || imgna == "home.css" || imgna == "home.js" || imgna == "pro.html" || imgna == "pro.css" || imgna == "pro.js" || imgna == "search.html" || imgna == "search.css" || imgna == "search.js" || imgna == "ctus.html") {
continue;
} else {
console.log("html files not included");
}


let xxd=`
<img class="imaggg" name="${imgna}" onclick="fff(this.src,this.name)" src="${imglikee}" loading="lazy">
`;

const pa = document.createElement("div");
pa.innerHTML =xxd;
pa.id="fffl";
document.getElementById("ddddi").appendChild(pa);
//document.getElementById("postt").innerHTML+=xxd;

}



}
sloadimg();

function see() {
let da = document.getElementById('wht').value;
let xxx = document.getElementsByClassName('imaggg');
for (let c = 0; c < xxx.length; c++) {
if (xxx[c].name.includes(da)) {
xxx[c].style.display = "block";
} else {
xxx[c].style.display = "none";
}
}
}
function hi(){
document.getElementById('pari').style.opacity="1.0";
document.getElementById('con').style.display="none";
}
function fff(x,m){
document.getElementById('imm').src=x;
document.getElementById('gfgf').name=x;
document.getElementById('ghgh').href=m;
document.getElementById('pari').style.opacity="0.4";
document.getElementById('con').style.display='block';

}
Loading

0 comments on commit 6a6d158

Please sign in to comment.