@@ -97,30 +97,49 @@ for (const key in categories) {
9797 <div class =" flex justify-between" >
9898 <h1 class =" text-xl font-bold" >Datos de Github</h1 >
9999
100- <img
101- src =" /assets/img/icons/sharp-help-outline.svg"
102- alt =" Ayuda"
103- class =" w-7 h-7 cursor-pointer mx-3"
104- data-popover-target =" popover-default"
105- />
106- <div
107- data-popover
108- id =" popover-default"
109- role =" tooltip"
110- class =" absolute z-10 invisible inline-block w-64 text-sm font-light text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:border-gray-600 dark:bg-gray-800"
111- >
112- <div class =" px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700" >
113- <h3 class =" font-semibold text-gray-900 dark:text-white" >Datos de GitHub</h3 >
114- </div >
115- <div class =" px-3 py-2" >
116- <p >
117- CuCoder usa tus datos públicos de GitHub para generar tu perfil, para actualizarlos debes hacerlo
118- <a class =" underline" href =" https://github.com/settings/profile" target =" _blank" > desde GitHub</a > y luego recargarlos
119- aquí.
120- </p >
121- </div >
122- <div data-popper-arrow ></div >
100+ <div class =" flex" >
101+ <img
102+ id =" reloadGithubData"
103+ data-tooltip-target =" tooltip-reload"
104+ src =" /assets/img/icons/reload.svg"
105+ alt =" Recargar Datos"
106+ class =" w-7 h-7 cursor-pointer mx-3"
107+ />
108+ <img
109+ src =" /assets/img/icons/sharp-help-outline.svg"
110+ alt =" Ayuda"
111+ class =" w-7 h-7 cursor-pointer mx-3"
112+ data-popover-target =" popover-default"
113+ />
114+ </div >
115+ </div >
116+
117+ <div
118+ id =" tooltip-reload"
119+ role =" tooltip"
120+ class =" absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700"
121+ >
122+ Recargar datos
123+ <div class =" tooltip-arrow" data-popper-arrow ></div >
124+ </div >
125+
126+ <div
127+ data-popover
128+ id =" popover-default"
129+ role =" tooltip"
130+ class =" absolute z-10 invisible inline-block w-64 text-sm font-light text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:border-gray-600 dark:bg-gray-800"
131+ >
132+ <div class =" px-3 py-2 bg-gray-100 border-b border-gray-200 rounded-t-lg dark:border-gray-600 dark:bg-gray-700" >
133+ <h3 class =" font-semibold text-gray-900 dark:text-white" >Datos de GitHub</h3 >
123134 </div >
135+ <div class =" px-3 py-2" >
136+ <p >
137+ Estos datos se obtienen de tu perfil de GitHub,
138+ <a class =" underline" href =" https://github.com/settings/profile" target =" _blank" >actualízalos</a > y luego recargarlos
139+ aquí.
140+ </p >
141+ </div >
142+ <div data-popper-arrow ></div >
124143 </div >
125144
126145 <hr class =" my-4" />
@@ -353,6 +372,9 @@ for (const key in categories) {
353372 const loadUserBtn = document.getElementById("loadUserBtn");
354373 loadUserBtn.addEventListener("click", searchGithubUser, true);
355374
375+ const reloadBtn = document.getElementById("reloadGithubData");
376+ reloadBtn.addEventListener("click", searchGithubUser, true);
377+
356378 const copyDataBtn = document.getElementById("copyData");
357379 copyDataBtn.addEventListener("click", copyToClipboard, true);
358380
0 commit comments