Kā iespējot/atspējot pogu, izmantojot jQuery?

Kā iespējot/atspējot pogu, izmantojot jQuery?

Pogas iespējošana/atspējošana, izmantojot jQuery, ietver tās funkcionalitātes maiņu, lai vai nu pieņemtu lietotāja ievadi, vai ne. Parasti tas tiek darīts, manipulējot ar tā 'atspējoto' rekvizītu vai atribūtu, izmantojot jQuery metodes, piemēram, '.prop()' vai '.attr()'.

Lai iespējotu/atspējotu pogu, izmantojot jQuery, jums ir nepieciešama pamata HTML struktūra kopā ar JavaScript/jQuery. Tālāk ir sniegta vienkārša koda struktūra, lai sāktu darbu

HTML Poga Iespējot/Disabletitle> <script src= 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'>skripts> galva> <body> <button id='myButton'>Noklikšķiniet uz pogas Me> <script>$(document).ready(function(){ // jQuery kods, lai iespējotu/atspējotu pogu // Pievienojiet savu kodu šeit }); skripts> body> html>>> </tag> <p dir='ltr'> <br> </p> <h2> <span>Pogas iespējošanas/atspējošanas piemēri, izmantojot jQuery </span> </h2> <h3> <span>1. Izmantojot .prop() metodi: </span> </h3> <p dir='ltr'> <span>Izmantojot </span> <span>.prop() jQuery </span> <span>Lai iespējotu/atspējotu pogu, ir jāiestata tās rekvizīts “atspējots” uz patiesu vai nepatiesu, nodrošinot efektīvu tās interaktivitātes kontroli, pamatojoties uz lietojumprogrammu prasībām un lietotāja mijiedarbību. </span> </p> <p dir='ltr'> <b> <strong>Piemērs: </strong> </b> <span>Šajā piemērā mēs izmantojam jQuery: pārslēdz pogas “atspējots” rekvizītu klikšķu un dubultklikšķa notikumos, lai nodrošinātu vienmērīgu lietotāja mijiedarbību, izmantojot .prop() metodi. </span> </p>HTML <tag data-text-1=' <html> <head> <script src= 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'>skripts> galva> <body> <h3>Izmantojot .prop() metodih3> <button id='update'>atjaunināšanas poga> <div style='margin-top: 50px'> <button id='change'>noklikšķiniet uz pogas me> div> <script>$('#change').on('click', function () { $('#update').prop( 'disabled', true ); }); $('#change').on( 'dblclick', function () { $('#update').prop( 'disabled', false ); } ); skripts> body> html>>> </tag> <p dir='ltr'> <b> <strong>Izvade: </strong> </b> </p> <img src='//techcodeview.com/img/blogathon-2021/17/how-enable-disable-button-using-jquery.webp' alt='JqueryToggle'> <p>.prop() metode Piemērs Izvade </p> <h3> <span>2. Izmantojot .attr() metodi </span> </h3> <p dir='ltr'> <span>Izmantojot </span> <span>.attr() metode </span> <span>programmā jQuery jūs pārslēdzat elementu atribūtu “atspējots”. Noklikšķinot uz pogas, tiek atspējota cita poga, savukārt, veicot dubultklikšķi, tā tiek iespējota atkārtoti, uzlabojot lietotāja mijiedarbību un funkcionalitāti tīmekļa lapās. </span> </p> <p dir='ltr'> <b> <strong>Piemērs: </strong> </b> <span>Šajā piemērā mēs izmantojam .attr() metodi, lai iespējotu/atspējotu pogu. Noklikšķinot, tiek atspējota cita poga; Veicot dubultklikšķi, tas tiek atkārtoti iespējots, uzlabojot lietotāja mijiedarbību un tīmekļa funkcionalitāti. </span> </p>HTML <tag data-text-1=' <html> <head> <script src= 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js'>skripts> galva> <body> <h3>Izmantojot .attr() metodih3> <button id='update'>Atjaunināt Mebutton> <div style='margin-top: 50px;'> <button id='change'>Noklikšķiniet uz pogas Mebutton> div> <script>$('#change').on('click', function () { $('#update').attr('disabled', 'disabled'); }); $('#change').on('dblclick', function () { $('#update').removeAttr('disabled'); }); skripts> body> html>>> </tag> <p dir='ltr'> <b> <strong>Izvade: </strong> </b> </p> <p> <br> </p> <img src='//techcodeview.com/img/blogathon-2021/17/how-enable-disable-button-using-jquery-2.webp' alt='JqueryToggle2'> <p>.attr() metode Piemēra izvade </p> <p> <br> </p> <br> <br> </div> <!-- Article Footer with Prominent Share Buttons --> <div class="px-6 md:px-8 py-8 bg-slate-50 dark:bg-slate-900/50 border-t border-slate-200 dark:border-slate-700/50"> <div class="flex flex-col sm:flex-row items-center justify-between gap-6"> <h4 class="text-base font-bold text-slate-700 dark:text-slate-300 uppercase tracking-wide flex items-center gap-2"> <i class="fa fa-share-alt text-tech-500"> </i> Kopīgot </h4> <div class="flex flex-wrap justify-center gap-3"> <!-- Twitter --> <a href="https://twitter.com/intent/tweet?text=Kā iespējot/atspējot pogu, izmantojot jQuery?&url=https://www.techcodeview.com/lv/how-enable-disable-button-using-jquery" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#1DA1F2]/10 text-[#1DA1F2] hover:bg-[#1DA1F2] hover:text-white transition-all duration-300 font-bold text-sm"> <i class="fa fa-twitter text-lg"> </i> <span class="hidden sm:inline">Twitter </span> </a> <!-- Facebook --> <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.techcodeview.com/lv/how-enable-disable-button-using-jquery" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#4267B2]/10 text-[#4267B2] hover:bg-[#4267B2] hover:text-white transition-all duration-300 font-bold text-sm"> <i class="fa fa-facebook text-lg"> </i> <span class="hidden sm:inline">Facebook </span> </a> <!-- LinkedIn --> <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.techcodeview.com/lv/how-enable-disable-button-using-jquery&title=Kā iespējot/atspējot pogu, izmantojot jQuery?" target="_blank" rel="noopener noreferrer" class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#0077b5]/10 text-[#0077b5] hover:bg-[#0077b5] hover:text-white transition-all duration-300 font-bold text-sm"> <i class="fa fa-linkedin text-lg"> </i> <span class="hidden sm:inline">LinkedIn </span> </a> </div> </div> </div> </article> <!-- Comments Placeholder / Random Articles --> <div class="mt-8 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-6 md:p-8 shadow-sm"> <h3 class="text-xl font-bold text-slate-900 dark:text-white mb-6 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700 pb-2"> Jums Varētu Patikt </h3> <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <div class="group"> <a href="/lv/not-gate" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3"> <img loading="lazy" src="https://techcodeview.com/img/digital-electronics/06/not-gate.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="NAV Vārti" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> </a> <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors"> <a href="/lv/not-gate">NAV Vārti </a> </h4> </div> <div class="group"> <a href="/lv/program-to-add-two-fractions" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3"> <img loading="lazy" src="https://techcodeview.com/img/mathematical/48/program-to-add-two-fractions.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Programma, lai pievienotu divas frakcijas" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> </a> <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors"> <a href="/lv/program-to-add-two-fractions">Programma, lai pievienotu divas frakcijas </a> </h4> </div> </div> </div> </div> <!-- SECONDARY COLUMN (SIDEBAR) --> <!-- Aside Column --> <div class="lg:col-span-4 space-y-8"> <!-- Best Articles Widget --> <div class="rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 p-6 shadow-sm"> <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2"> <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide flex items-center"> <span class="mr-2 h-2 w-2 rounded-full bg-tech-500"> </span> Top Raksti </h2> </div> <!-- Owl Carousel Preserved Container --> <div id="owl-carousel-3" class="owl-carousel owl-theme center-owl-nav"> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/deletion-avl-tree"> <img src="https://techcodeview.com/img/ds-tutorial/61/deletion-avl-tree.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Dzēšana AVL kokā" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/deletion-avl-tree" class="hover:text-tech-500 transition-colors line-clamp-3">Dzēšana AVL kokā </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/fourier-transform-circuit-analysis"> <img src="https://techcodeview.com/img/geeks-premier-league-2023/70/fourier-transform-circuit-analysis.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Furjē transformācija ķēžu analīzē" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/fourier-transform-circuit-analysis" class="hover:text-tech-500 transition-colors line-clamp-3">Furjē transformācija ķēžu analīzē </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/java-jtextfield"> <img src="https://techcodeview.com/img/java-swing/22/java-jtextfield.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Java JTextField" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/java-jtextfield" class="hover:text-tech-500 transition-colors line-clamp-3">Java JTextField </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/how-download-install-itunes-linux"> <img src="https://techcodeview.com/img/geeks-premier-league-2023/97/how-download-install-itunes-linux.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kā lejupielādēt un instalēt iTunes operētājsistēmā Linux" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/how-download-install-itunes-linux" class="hover:text-tech-500 transition-colors line-clamp-3">Kā lejupielādēt un instalēt iTunes operētājsistēmā Linux </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/what-is-specific-heat-water-131224"> <img src="https://techcodeview.com/img/blog/66/what-is-specific-heat-water.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kāds ir ūdens īpatnējais siltums? Kā tas ir īpašs?" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/what-is-specific-heat-water-131224" class="hover:text-tech-500 transition-colors line-clamp-3">Kāds ir ūdens īpatnējais siltums? Kā tas ir īpašs? </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/wednesday-review"> <img src="https://techcodeview.com/img/movie-reviews/92/wednesday-review.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Trešdienas apskats" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/wednesday-review" class="hover:text-tech-500 transition-colors line-clamp-3">Trešdienas apskats </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/best-character-analysis-131436"> <img src="https://techcodeview.com/img/blog/54/best-character-analysis.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Labākā varoņa analīze: Džordans Beikers - Lielais Getsbijs" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/best-character-analysis-131436" class="hover:text-tech-500 transition-colors line-clamp-3">Labākā varoņa analīze: Džordans Beikers - Lielais Getsbijs </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/computer-network-components"> <img src="https://techcodeview.com/img/computer-network/59/computer-network-components.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Datortīkla komponenti" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/computer-network-components" class="hover:text-tech-500 transition-colors line-clamp-3">Datortīkla komponenti </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/c-inheritance"> <img src="https://techcodeview.com/img/c-tutorial/62/c-inheritance.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="C++ mantošana" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/c-inheritance" class="hover:text-tech-500 transition-colors line-clamp-3">C++ mantošana </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors"> <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700"> <a href="/lv/establishing-jdbc-connection-java"> <img src="https://techcodeview.com/img/jdbc/26/establishing-jdbc-connection-java.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="JDBC savienojuma izveide Java" class="w-full h-full object-cover"> </a> </div> <div class="flex-1 min-w-0"> <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug"> <a href="/lv/establishing-jdbc-connection-java" class="hover:text-tech-500 transition-colors line-clamp-3">JDBC savienojuma izveide Java </a> </h4> </div> </article> <!-- /ARTICLE --> </div> <!-- Categories --> <div class="mt-8 mb-4 border-b border-slate-100 dark:border-slate-700 pb-2"> <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Kategorija </h2> </div> <div class="flex flex-wrap gap-2"> <a href="/lv/blog/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Emuārs </a> <a href="/lv/java-conversion/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Java Konvertēšana </a> <a href="/lv/maths/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Matemātika </a> <a href="/lv/java-collections/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Java Kolekcijas </a> <a href="/lv/differences/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Atšķirības </a> <a href="/lv/java-string/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors"> Java Virkne </a> </div> <!-- Interesting Articles Widget --> <div class="mt-8"> <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2"> <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Interesanti Raksti </h2> </div> <div id="owl-carousel-4" class="owl-carousel owl-theme"> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/ms-excel-tutorial/01/excel-if-function-with-calculations.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Excel If funkcija ar aprēķiniem" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/ms-excel-tutorial/">Ms Excel Apmācība </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/excel-if-function-with-calculations">Excel If funkcija ar aprēķiniem </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/java-exceptions/25/exceptions-java.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Izņēmumi Java" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/java-exceptions/">Java Izņēmumi </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/exceptions-java">Izņēmumi Java </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/mysql-tutorial/36/mysql-ifnull.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="MySQL IFNULL()" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/mysql-tutorial/">Mysql Apmācība </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/mysql-ifnull">MySQL IFNULL() </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/digital-electronics/56/de-multiplexer.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Demultiplekseris" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/digital-electronics/">Digitālā Elektronika </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/de-multiplexer">Demultiplekseris </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/it-problems-solutions/14/machine-learning-tutorial.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Mašīnmācīšanās apmācība" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/it-problems-solutions/">It Problēmas Un Risinājumi </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/machine-learning-tutorial">Mašīnmācīšanās apmācība </a> </h4> </div> </article> <!-- /ARTICLE --> <!-- ARTICLE --> <article class="relative aspect-video rounded-lg overflow-hidden group mb-2"> <div class="absolute inset-0"> <img src="https://techcodeview.com/img/gradle-tutorial/52/gradle-build.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Gradle Build" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"> <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div> </div> <div class="absolute bottom-0 left-0 p-4"> <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/lv/gradle-tutorial/">Gradle Apmācība </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lv/gradle-build">Gradle Build </a> </h4> </div> </article> <!-- /ARTICLE --> </div> </div> </div> </div> <!-- /Aside Column --> </div> </div> </div> <footer class="site-footer"> <div class="container"> <span class="footer-links"> Copyright ©2026 Visas Tiesības Aizsargātas | <a href="//www.techcodeview.com/sk/">techcodeview.com </a> | <a href="/disclaimer" rel="nofollow noopener noreferrer" target="_blank">Atruna </a> | <a href="/about-us" rel="nofollow noopener noreferrer" target="_blank">Par Mums </a> | <a href="/privacy-policy" rel="nofollow noopener noreferrer" target="_blank">Privātuma Politika </a> </span> </div> </footer> <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/jquery-1.11.3.min.js"> </script> <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/bootstrap/js/bootstrap.min.js"> </script> <script type="text/javascript" src="https://techcodeview.com/template/assets/js/main.js"> </script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"> </script> <script> !function(){"use strict";let t=document.createElement("button");t.id="toTopBtn",t.innerHTML="↑";let e=` #toTopBtn { position: fixed; bottom: 25px; right: 25px; z-index: 9999; opacity: 0; visibility: hidden; background-color: #0ea5e9; color: white; border: none; border-radius: 8px; width: 50px; height: 50px; font-size: 24px; cursor: pointer; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; } #toTopBtn:hover { background-color: #0284c7; } `,i=document.createElement("style");i.type="text/css",i.innerText=e,document.head.appendChild(i),document.body.appendChild(t),window.addEventListener("scroll",()=>{let e=window.scrollY||document.documentElement.scrollTop;e>300?(t.style.opacity="1",t.style.visibility="visible"):(t.style.opacity="0",t.style.visibility="hidden")}),t.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}(); </script> </body> </html>