https://failiem.lv/

ID de l'analyse :
70021679-3cb2-4aba-9892-b0e4ac7d6dccTerminée
URL soumise :
https://failiem.lv/uRedirigé
Fin du rapport :

Liens : 26 trouvé(s)

Lientexte
https://play.google.com/store/apps/details?id=com.files.fm Mobile: AndroidJaunums!
https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796 Mobile: Apple iOSJaunums!
https://www.chamber.lv/
https://www.sprk.gov.lv/
https://likta.lv/
https://www.itbaltic.com/
https://www.arcers.lv/
https://lff.lv/
https://ltv.lsm.lv/lv/
https://www.sigulda.lv/public/lat/pasvaldiba/dome/

Variables JavaScript : 294 trouvée(s)

NomType
0object
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
_paqobject
gtagfunction
dataLayerobject
filesfm_gtag_report_conversionfunction
$function
jQueryfunction

Messages de journal de console : 2 trouvé(s)

TypeCatégorieEnregistrement
verbosedom
URL
https://failiem.lv/
texte
[DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o
verbosedom
URL
https://failiem.lv/
texte
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) %o

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html id="adaptive_html" lang="LV"><head>
    <meta charset="UTF-8">
		<meta name="globalsign-domain-verification" content="WVoCXGP9WWz7ZO3hqGZASmZCYQ2jhO7WxIRwsepEgV">

<meta name="theme-color" content="#ffffff">


<meta name="facebook-domain-verification" content="nikti9bu56gz5oi6d126k5bloj0772">



<title>Droša failu glabāšana. Ātra lielu apjomu pārsūtīšana.</title>
<meta name="keywords" content="ftp file upload, file hosting, android, file cloud, cloud storage, file sharing, failu glabāšana, bilžu hostings, bilžu apmaiņa, failu apmaiņa, failu serveris, failu koplietošana, failu rezerves kopijas, failu backup, file hosting, file sharing, file exchange, file storage, image hosting, file upload, files, file share, web file hosting, internet file storage, image upload, free upload, photo sharing, online photo gallery, photos online, data backup, online backup">
			

        <meta property="og:title" content="Droša failu glabāšana. Ātra lielu apjomu pārsūtīšana.">
        <meta property="og:description" content="Ērti glabā, dalies vai pārdod foto, video un citu saturu. Ātri pārsūti lielu failu oriģinālus.">
        <meta name="description" content="Ērti glabā, dalies vai pārdod foto, video un citu saturu. Ātri pārsūti lielu failu oriģinālus.">

        <meta property="og:image" content="https://failiem.lv/images/meta_share/failiem-meta-1200-2x.png">
        <meta property="og:image:secure_url" content="https://failiem.lv/images/meta_share/failiem-meta-1200-2x.png">
        <meta name="twitter:card" content="summary_large_image">
        <meta name="twitter:image" content="https://failiem.lv/images/meta_share/failiem-meta-1200-2x.png">
        <meta property="twitter:image" content="https://failiem.lv/images/meta_share/failiem-meta-1200-2x.png">
        
        
        <meta property="og:url" content="https://failiem.lv">
        <meta property="og:type" content="website">
        <meta property="og:site_name" content="Failiem.lv">
        <meta property="fb:app_id" content="449566538440301">
        <link rel="canonical" href="https://failiem.lv/">
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin="">
<link rel="preconnect" href="https://files.fm" crossorigin="">
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin="">
<link rel="preconnect" href="https://www.googleadservices.com" crossorigin="">
<link rel="preconnect" href="https://googleads.g.doubleclick.net" crossorigin="">
<link rel="preconnect" href="https://stats.g.doubleclick.net" crossorigin="">
<link rel="preconnect" href="https://www.google.com" crossorigin="">
<link rel="preconnect" href="https://www.google.lv" crossorigin="">

<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-H8LJ280FZW&amp;l=dataLayer&amp;cx=c&amp;gtm=457e4bk0za200"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=AW-1043031755&amp;l=dataLayer&amp;cx=c&amp;gtm=457e4bk0za200"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=UA-1970559-6&amp;l=dataLayer&amp;cx=c&amp;gtm=457e4bk0za200"></script><script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-EFZ32Z07VR&amp;l=dataLayer&amp;cx=c&amp;gtm=457e4bk0za200"></script><script async="" src="//analytics.files.fm/matomo.js"></script><script>
	
    var _paq = window._paq = window._paq || [];
    
    _paq.push( [ 'trackPageView' ] );
    _paq.push( [ 'enableLinkTracking' ] );
    
    (function()
    {
        var u= '//analytics.files.fm/';
        
        _paq.push( [ 'setTrackerUrl', u + 'matomo.php' ] );
        _paq.push( [ 'setSiteId', '2' ] );
        
        var d = document;
        var g = d.createElement( 'script' );
        var s = d.getElementsByTagName( 'script' )[ 0 ];
        
        g.async = true;
        g.src = u + 'matomo.js';
        s.parentNode.insertBefore( g, s );
    } )();

</script>



<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-1970559-10"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  
    
  gtag('js', new Date());
  
    gtag('config', 'UA-1970559-10');

    gtag('config', 'UA-1970559-6');
  
    
    gtag('config', 'AW-1043031755');
  
</script>

 <script src="/js/google_conversion.js?v=4"></script>

 




			<base href="https://failiem.lv/">


			<meta name="verify-v1" content="4MHpv5CF+UNp34oMIZOxnVwoSslLpr+5GPkxFp94Wq8=">

			<meta name="viewport" content="width=device-width, initial-scale=1">



<link rel="stylesheet" type="text/css" media="all" href="/css/reset.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/global.css?v=1722490362"><link rel="stylesheet" type="text/css" media="all" href="/css/header.css?v=1729759893"><link rel="stylesheet" type="text/css" media="all" href="/css/messages/messages.css?v=1715343651"><link rel="stylesheet" type="text/css" media="all" href="/ts/chat/dist/chat.css?v=1715343647">
                <script src="/js/jquery-1.12.2.min.js?v=1715343643"></script>
                <script src="/js/jquery-migrate-1.3.0.js?v=1715343643"></script>
                <script src="/js/JSON/cycle.js?v=1715343642"></script>			<script src="/error_handler_client?v=4"></script>

            <link rel="icon" type="image/png" href="/images/logo/rebranded/favicon-192x192px.png?v=2">
			<link rel="icon" type="image/svg+xml" href="/images/logo/rebranded/favicon-192x192px.svg?v=2">
			<script>

				var DOMAIN_NAME = 'failiem.lv';
				
				var HTTP_HOST = 'failiem.lv';
				var IS_DEV_SERVER = false;

				// capitalize first letter of domain
                DOMAIN_NAME = DOMAIN_NAME.charAt(0).toUpperCase() + DOMAIN_NAME.slice(1);

				var lang_code = 'LV';

				var DOCUMENT_IS_LOADED = false;

				var MMVD = false;
				var STDT = new Date().getTime();

				var WEB_ROOT_PATH = '';

				var FB_APP_ID = '449566538440301';

				var strTranslation_LinkCopied = 'Saite ir iekopēta atmiņā';

				var strSellFilesCurrency = 'USD';

				$(function(){

					DOCUMENT_IS_LOADED=true

                    var intScrollTop = $('html').scrollTop();
                    var intFlagHeight = $('body').hasClass('show_header_flag') ? 20 : 0;
					intScrollTop = Math.max(intScrollTop, $('body').scrollTop());
					
                    if ( intScrollTop > 0 )
                    {
                        $('body').addClass('scrolled');
                    }
                    
                    var intPrevScrollPos = intScrollTop;
                    var objHeaderElem = document.getElementById("header");
                    
                    $(window).on('scroll', function () {
                        //close side menu
                        $( '#navbar-toggler-chb' ).prop('checked', false);
                        $( '#header' ).css('z-index', '');

                        var intScrollTop = $('html').scrollTop();
                        intScrollTop = Math.max(intScrollTop, $('body').scrollTop());
                        
                        if ( intScrollTop > 0 )
                        {
                            $('body').addClass('scrolled');
                        }
                        else
                        {
                            $('body').removeClass('scrolled');
                            checkMenuItems();
                        }

                                                    /* Switch between top and bottom menu */

                            var intHeaderPositionTop = '';
                            if($('#popup_form:visible').length)
                            {
                                var intHeaderPositionTop = $('#popup_form:visible').height() + 'px';
                            }
                            
                            var intCurrentScrollPos = intScrollTop;
                            if(intScrollTop > 0 && window.innerWidth <= 620 )
                            {
                                if ($('html')[0].style.position === 'fixed') //fix for iOS, dont allow scroll if popup is open
                                {
                                    return;
                                }
                                if (intPrevScrollPos > intCurrentScrollPos && intCurrentScrollPos < 150)
                                {
                                    objHeaderElem.style.top = "-55px";
                                    objHeaderElem.style.bottom = "-55px";
                                    
                                    $('#header').addClass('overflow-hidden');
                                    setTimeout(()=> {
                                        var bolResetAllItems = false;
                                        if ( objHeaderElem.classList.contains('bottom-styling'))
                                        {
                                            bolResetAllItems = true;
                                        }
                                        objHeaderElem.classList.remove("bottom-styling");
                                        objHeaderElem.style.top = intHeaderPositionTop;
                                        $('#mega-menu, #mega-menu-close').css('top', 55 + parseInt(intHeaderPositionTop) + intFlagHeight)
                                        $('#mega-menu-close').css('height', '');
                                        objHeaderElem.style.bottom = "";
                                        checkMenuItems(bolResetAllItems);
                                    }, 300);
                                }
                                else
                                {
                                    if( ! objHeaderElem.classList.contains('bottom-styling') )
                                    {
                                        objHeaderElem.style.top = "-75px";
                                        objHeaderElem.style.bottom = "-75px";

                                        $('#header').addClass('overflow-hidden');
                                        setTimeout(()=> {
                                            objHeaderElem.classList.add("bottom-styling");
                                            $('#mega-menu, #mega-menu-close').css('top', parseInt(intHeaderPositionTop))
                                            $('#mega-menu-close').css('height', 'calc(100% - 75px - '+intHeaderPositionTop+')');
                                            objHeaderElem.style.top = "";
                                            objHeaderElem.style.bottom = "";
                                            checkMenuItems();
                                        }, 300);
                                    }
                                }
                            }
                            intPrevScrollPos = intCurrentScrollPos;
                                            });

					$( document ).mousemove( function( event )
					{
						if ( ! MMVD )
						{
							if ( ( ( new Date().getTime() ) - STDT ) > 1000 )
							{
								MMVD = true;
							}
						}
					});
				});


				function changeLanguage(strLangCode, strTitle)
				{
					var strUrl = '';
					switch (strLangCode)
					{
						case 'lv':
                            strUrl = 'https://failiem.lv/';
                            break;
						case 'en':
                            strUrl = 'https://files.fm/';
                            break;
						case 'ru':
                            strUrl = 'https://ru.files.fm/';
                            break;
						case 'de':
                            strUrl = 'https://de.files.fm/';
                            break;
						case 'fi':
                            strUrl = 'https://fi.files.fm/';
                            break;
                        case 'es':
                            strUrl = 'https://es.files.fm/';
                            break;
                        case 'ko':
                            strUrl = 'https://ko.files.fm/';
                            break;
                        case 'uk':
                            strUrl = 'https://ua.files.fm/';
                            break;
					}
                    gaev('HeaderClick', 'Lang_switch', strLangCode);
					window.location = strUrl + WEB_ROOT_PATH;// + '?lng='+strLangCode;
					$('.language_dropdown .activator SPAN').each(function (){
						var img = $('IMG', this).clone();
						$(this).html(strTitle + ' ').append(img);
					});
					hidePopups();
				}


				function gaev(strCategory, strAction, strLabel, strValue) {

					if (typeof gtag != 'undefined') {
						// old ga.js
						//_gaq.push(['_trackEvent', strCategory, strAction, strLabel]);
						
						// Send the event to the gtag.js Google Analytics property
						// with tracking ID GA_MEASUREMENT_ID.
						gtag('event', 'Events', {
						  'event_category': strCategory,
						  'event_action': 	strAction,
						  'event_label': 	strLabel,
						  'value':			strValue
						});
						
						/*gtag('event', 'strEveryEventTest', {
						  'send_to': 'UA-1970559-10',
						  'event_category': 'EveryEvent',
						  'event_action': 	'TestAction',
						  'event_label': 	'TestLabel'
						});*/

					};
					
					
					if ( typeof _paq != 'undefined' )
					{
						_paq.push( [
							'trackEvent',
							strCategory ,
							strAction ,
							strLabel ,
							strValue
						] );
					}
				}
				
				function logClick(strButton)
				{
										if (typeof gtag != 'undefined')
					{
						//_gaq.push(['_trackEvent', 'ActionLine', strButton, 'List']);

						gtag('event', 'Clicks', {
						  'send_to': 'UA-1970559-10',
						  'event_category': 'ActionLine',
						  'event_action': 	strButton,
						  'event_label': 	'List'
						});
					};
									}


				function printAdwordsConversion(strIframeName) {

					var  iframe = document.createElement('iframe');
					iframe.style.width = '0px';
					iframe.style.height = '0px';
					document.body.appendChild(iframe);

					iframe.src = 'https://failiem.lv/server_scripts/google_adwords/'+ strIframeName +'.php';
				}

			</script>
			<script>
				var IS_MOBILE = false;
			</script>

			<!-- IE less than 9 -->
			<!--[if lt IE 9]>
				<script type="text/javascript" src="./js/html5.js"></script>
				<script type="text/javascript" src="./js/css3-mediaqueries.js"></script>
			<![endif]-->
  <script>  	var tb_lang = new Object();  	tb_lang["close"] = "Aizvērt";  	tb_lang["or_esc_key"] = "vai spied Esc taustiņu";  </script>
			<script>

				Math._round = function(number, precision)
				{
					precision = Math.abs(parseInt(precision)) || 0;
					var coefficient = Math.pow(10, precision);
					return Math.round(number*coefficient)/coefficient;
				}

				function file_size_format (filesize, intPrecision, bolShowBits=false )
				{
					if ( bolShowBits )
					{
						filesize = filesize * 8;
					}
				    
				    if (typeof(intPrecision) == 'undefined' || intPrecision==null)
				        intPrecision = 2;
				    
					if (filesize >= 1073741824)
					{
						filesize = Math._round(filesize / 1073741824, 2).toFixed(intPrecision) + '&nbsp;G';
					}
					else
					{
						if (filesize >= 1048576)
						{
							filesize = Math._round(filesize / 1048576, 2).toFixed(intPrecision) + '&nbsp;M';
						}
						else
						{
							if (filesize >= 1024)
							{
								filesize = Math._round(filesize / 1024, 0).toFixed(intPrecision) + '&nbsp;K';
							}
							else
							{
								filesize = filesize.toFixed(intPrecision) + '&nbsp;';
							};
						};
					};
					
					if ( bolShowBits )
					{
						filesize += 'bits';
					}
					else 
					{
						filesize += 'B';
					}
					
					return filesize;
				};

			</script>





			<script>
    /**
     * @param strEmails - one or more emails delimited with ","
     * @param bolIsSingleEmail - is strEmails only one email
     */
    function EmailValidator(strEmails, bolIsSingleEmail)
    {
        this.state = EmailValidator.states.READY;
        this.strSuggestedEmails = "";
        this.strEmails = strEmails.trim();
        this.strNoMxEmails = "";
        this.strInputID = "";
        this.bolIsSingleEmail = bolIsSingleEmail;

        // set default invalid cb
        this.setOnInvalidCB(function(){});
        this.strErrorClass = "has-error";
    }
    
    EmailValidator.regexTest = function(email) 
    {
        var re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
        
        return re.test( email )
            // disallow single quotes
            && email.indexOf( "'" ) === -1;
    };
    
    //<editor-fold desc="Setters">
    /**
     * this.onValidCB and this.onInvalidCB and this.setOnSuggestionCB execution order:
     *  1. remove this.strErrorClass from this.strInputID
     *  2. show or hide modal - only for onInvalid and onValid
     *  3. run callback
     */
    EmailValidator.prototype.setOnValidCB = function (onValidCB)
    {
        this.onValidCB = applyTo(this, function ()
        {
            if (this.strModalID && $('#' + this.strModalID).css('opacity') == 0)
            {
                showModal(this.strModalID);
            }
            this.removeClassFromInput();
            onValidCB();
        });

        return this;
    };
    EmailValidator.prototype.setOnInvalidCB = function (onInvalidCB)
    {
        this.onInvalidCB = applyTo(this, function ( strInvalidEmails)
        {
            if( typeof strInvalidEmails === 'undefined' )
            {
                strInvalidEmails =  '';
            }
            
            if (this.strModalID && $('#' + this.strModalID).css('opacity') == 0)
            {
                showModal(this.strModalID);
            }
            this.addErrorClassToInput();
            onInvalidCB(strInvalidEmails);
        });

        return this;
    };
    EmailValidator.prototype.setOnSuggestionCB = function (onSuggestionCB)
    {
        this.revalidate = function ()
        {
            this.addErrorClassToInput();
            onSuggestionCB();
        };
        return this;
    };
    
    EmailValidator.prototype.setModalID = function (strModalID)
    {
        this.strModalID = strModalID;
        return this;
    };

    EmailValidator.prototype.setInputID = function (strInputID)
    {
        this.strInputID = strInputID;
        return this;
    };

    EmailValidator.prototype.setErrorClass = function (strErrorClass)
    {
        this.strErrorClass = strErrorClass;
        return this;
    };
    //</editor-fold>
    
    EmailValidator.prototype.onTooManyEmails = function () 
    {
        fError("Vienā reizē nav atļauts nosūtīt vairāk par 5 e-pastiem.", "", "OK", applyTo(this, this.onInvalidCB));
    };

    /**
     * adds this.strErrorClass to element with ID this.strInputID
     */
    EmailValidator.prototype.addErrorClassToInput = function ()
    {
        if (this.strInputID)
        {
            $("#" + this.strInputID).addClass(this.strErrorClass);
        }
    };

    /**
     * removes this.strErrorClass from element with ID this.strInputID
     */
    EmailValidator.prototype.removeClassFromInput = function ()
    {
        if (this.strInputID)
        {
            $("#" + this.strInputID).removeClass(this.strErrorClass);
        }
    };

    EmailValidator.prototype.run = function ()
    {
        if(this.strEmails === "") 
        {
            this.state = EmailValidator.states.INVALID;
            this.onInvalidCB();
            return;
        }
        
        // onValid, onInvalid and strEmails are necessary!
        if (!this.onValidCB || !this.onInvalidCB)
        {
            throw new Error("EmailValidator is missing essential data!");
        }
        
        var emails;

        // check if not over allowed email count
        if( !this.bolIsSingleEmail )
        {
            emails = this.strEmails.split(",");
            if( emails.length > 50 ) {
                this.state = EmailValidator.states.TOO_MANY_EMAILS;
                this.onTooManyEmails();
                return;
            }
        }
        else
        {
            emails = [ this.strEmails ];
        }

        // test emails against email regex before posting them
        for (var i in emails)
        {
            if ( emails.hasOwnProperty(i) && !EmailValidator.regexTest( emails[i].trim() ) )
            {
                this.state = EmailValidator.states.INVALID;
                this.onInvalidCB( emails[i].trim() );
                return;
            }
        }

        this.state = EmailValidator.states.RUNNING;

        $.post('/chkMail.php', {'q': this.strEmails}, applyTo(this, this.onResponse));
    };

    EmailValidator.prototype.onResponse = function (data)
    {
        var arrReturn = JSON.parse(data);

        if (arrReturn['result'] === 0)
        {
            this.state = EmailValidator.states.VALID;
            this.onValidCB(this);
        }
        else if(arrReturn['result'] === EmailValidator.states.INVALID) 
        {
            this.state = EmailValidator.states.INVALID;
            this.onInvalidCB();
        }
        else if (arrReturn['result'] === 2)
        {
            this.strSuggestedEmails = arrReturn['suggest'];

            if (arrReturn['no_mx'])
            {
                this.strNoMxEmails = arrReturn['no_mx'];
                this.state = EmailValidator.states.MISSING_MX_RECORDS;
            }
            else
            {
                this.state = EmailValidator.states.POSSIBLE_TYPO;
            }

            // this calls onSuggestionCB
            this.revalidate();
        }
        else if (arrReturn['result'] === 4)
        {
            this.state = EmailValidator.states.TOO_MANY_EMAILS;
            this.onTooManyEmails();
        }
    };

    EmailValidator.prototype.revalidate = function ()
    {
        // add typo suggestions and emails with no mx records to string
        var strMsg = '';
        if (this.strSuggestedEmails !== '')
        {
            strMsg += "Vai J\u016bs dom\u0101j\u0101t:";
            strMsg += " " + this.strSuggestedEmails + "?\n";
        }
        if (this.strNoMxEmails !== '')
        {
            if(this.bolIsSingleEmail)
            {
                strMsg += "Iesp\u0113jams, ka ievad\u012bt\u0101 e-pasta adrese nav pareiza:"            }
            else 
            {
                strMsg += "Iesp\u0113jams, \u0161\u012bs adreses nav pareizas:"            }
            
            strMsg += " " + this.strNoMxEmails + ".\n";
        }

        if(this.bolIsSingleEmail)
        {
            strMsg += "L\u016bdzu p\u0101rbaudiet ievad\u012bto e-pastu! Ja tas ir pareizs, spiediet OK.";
        }
        else 
        {
            strMsg += "L\u016bdzu p\u0101rbaudiet ievad\u012bto e-pastu pareiz\u012bbu! Ja visi ievad\u012btie e-pasti ir pareizi, spiediet OK.";
        }

        this.addErrorClassToInput();

        // hide the original modal to avoid overlapping
        if (this.strModalID && $('#'+this.strModalID).css('opacity') == 1)
        {
            hideModal(this.strModalID);
        }

        fConfirm(
            strMsg,
            "P\u0101rbaudi ievad\u012bto epasta adresi",
            "OK",
            "Atcelt",
            applyTo(this, function ( bolResult)
            {
                // execute onInvalid only if user declines
                if (bolResult === false)
                {
                    this.state = EmailValidator.states.INVALID;
                    this.onInvalidCB();
                }
            }),
            applyTo(this, function ()
            {
                this.state = EmailValidator.states.ACCEPTED_TYPO;
                this.onValidCB();
            }, this)
        );
    };

    EmailValidator.prototype.isSubmittable = function ()
    {
        return [EmailValidator.states.VALID, EmailValidator.states.ACCEPTED_TYPO].indexOf(this.state) !== -1;
    };

    EmailValidator.states = {
        READY: -2,              // initial state
        RUNNING: -1,            // request has started and server has not responded yet

        // => onValidCB
        VALID: 0,

        // => onInvalidCB
        INVALID: 1,

        // => revalidate => onSuggestionCB
        POSSIBLE_TYPO: 2,       // there are typos in the submitted emails
        MISSING_MX_RECORDS: 3,  // some emails have missing mx records
        TOO_MANY_EMAILS: 4,     // too many emails are submitted

        // => revalidate => onSuggestionCB (clicked OK) => onValid 
        ACCEPTED_TYPO: 5        // typo was spotted but user dismissed it
    };
    
    // the function is defined in functions.js, but because this script is included in bergafoto, lets check to make sure.
    if ( typeof applyTo !== 'function' )
    {
        /**
         * Magic function that makes vanilla JS objects usable
         *  - execute fn in the context of $this with passed parameters
         *  - you can also pass parameters to the fn that is returned, they will be added to the fn call
         * @param $this - Object scope
         * @param fn - Object method to execute
         * @param var1 - first parameter to be passed to fn
         * @returns {Function}
         */
        window.applyTo = function( $this, fn, var1 )
        {
            if ( !$this )
            {
                throw new Error( "Invalid usage of closure function, scope must be defined." );
            }
        
            if ( !fn )
            {
                throw new Error( "Invalid usage of closure function, fn must be defined." );
            }
        
            var finalArgs = [];
        
            // skip first 3 arguments (callee, $this, fn)
            for ( var i = 2; i < arguments.length; ++i )
            {
                // add to list of args
                finalArgs.push( arguments[ i ] );
            }
        
            return function ()
            {
                // add all arguments
                for ( var i = 0; i < arguments.length; ++i )
                {
                    finalArgs.push( arguments[ i ] );
                }
            
                // first arguments will be the ones passed to closure, then the ones passed to this function
                return fn.apply( $this, finalArgs );
            };
        }
    }
</script>
<link rel="stylesheet" type="text/css" media="all" href="/bootstrap/css/dropdown.css?v=1715343645"><link rel="stylesheet" type="text/css" media="all" href="/css/global_facelift.css?v=1720449903"><link rel="stylesheet" type="text/css" media="all" href="/css/inputs.css?v=1717752354"><link rel="stylesheet" type="text/css" media="all" href="/js/jquery-ui-1.12.1.custom/jquery-ui.min.css?v=1715343640"><link rel="stylesheet" type="text/css" media="all" href="/css/thickbox.css?v=1715343651"><link rel="stylesheet" type="text/css" media="all" href="/css/modal.css?v=1715343648"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-new/css/font-awesome.min.css?v=1715343648"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/light.min.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/brands.min.css?v=1715343650"><link rel="stylesheet" type="text/css" media="all" href="/css/font-awesome-pro/css/fontawesome.min.css?v=1715343649"><link rel="stylesheet" type="text/css" media="all" href="/css/alert.css?v=1715343648">
                <script src="/js/jquery.cookie.js?v=1715343634"></script>
                <script src="/js/jquery-ui-1.12.1.custom/jquery-ui.js?v=1715343640"></script>
                <script src="/js/global.js?v=1727422596"></script>
                <script src="/js/info_tooltips.js?v=1722490360"></script>
                <script src="/js/jquery-ui-1.11.4.custom/jquery-ui.min.js?v=1715343634"></script>
                <script src="/js/event.js?v=1715343644"></script>
                <script src="/js/functions.js?v=1715343642"></script>
                <script src="/js/thickbox.js?v=1715343642"></script>
                <script src="/js/modal.js?v=1715343639"></script>
                <script src="/js/alert.js?v=1715343643"></script>		</head>
				<body class="lang_lv use_vh show_header_flag">

            <!-- Google Tag Manager (noscript) -->
            <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N9HRMM7"
            height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
            <!-- End Google Tag Manager (noscript) -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ZNTW54" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<script>

    jQuery.fn.shake = function(interval,distance,times){
        interval = typeof interval == "undefined" ? 100 : interval;
        distance = typeof distance == "undefined" ? 10 : distance;
        times = typeof times == "undefined" ? 3 : times;
        var jTarget = $(this);
        jTarget.css('position','relative');
        for(var iter=0;iter<(times+1);iter++){
            jTarget.animate({ left: ((iter%2==0 ? distance : distance*-1))}, interval);
        }
        return jTarget.animate({ left: 0},interval);
    }

	$( window ).bind( 'load', function()
	{
        const strUrlParams = new URLSearchParams(window.location.search);
		if( strUrlParams.has('coupon') || strUrlParams.has('kupons') ) 
		{
			showCreateAccount();
            adaptFormForCoupon();
        }
	} );
</script>

			<div id="container" class="failiemlv ">
			<noscript>
				<table class="alert_container alert_container_danger" style="display: block">
					<tr>
						<td>
							<i class="fa fa-exclamation-circle"></i>
						</td>
						<td>
							<div class="alert_main_text">
								Tava pārlūkprogramma neatbalsta JavaScript. Lai izmantotu šo lapu, ieslēdz JavaScript atbalstu vai arī izmanto citu pārlūkprogrammu.							</div>
						</td>
					</tr>
				</table>
			</noscript>


	
<header id="header" class="">
    <nav>
        <!-- Flag -->
        <!-- UA flag -->
        <!-- <div id="header_flag">
            <div id="header_flag_1"></div>
            <div id="header_flag_2"></div>
        </div> -->
        <!-- -->

        <!-- LV flag -->
        <div id="header_flag">
            <div id="header_flag_3"></div>
            <div id="header_flag_4"></div>
            <div id="header_flag_5"></div>
        </div>
       

        <div class="container">
            
            <input type="checkbox" class="navbar-toggler" id="navbar-toggler-chb">
            <label id="navbar-toggler" class="only-bottom navbar-toggler-stripes user-has-not-clicked-navbar-toggler new" for="navbar-toggler-chb" onclick="if(! $('#navbar-toggler-chb').is(':checked')) { $( '#header' ).css('z-index', '100000'); } $( this ).toggleClass( 'clicked' ); navbarTogglerClicked(); gaev('HeaderClick', 'Hamburger-menu', '');" onmouseover="navbarTogglerClicked()" style="visibility: visible;">
                    Izvēlne            </label>

            <script type="text/javascript">
                function navbarTogglerClicked()
                {
                    $( '#navbar-toggler' ).removeClass( 'user-has-not-clicked-navbar-toggler' );
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=failiem.lv';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=.failiem.lv';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=files.fm';
                    document.cookie = 'user-has-clicked-navbar-toggler=1; max-age=' + (365*24*60*60) + ' ; path=/ ; domain=.files.fm';
                }
            </script>

            <div class="nav-left">
            	                <a class="navbar-brand menu-link" onclick="gaev('HeaderClick', 'Logo', '');" href="/">
                    <img class="logo" alt="Failiem.lv" src="/images/logo/rebranded/failiem-lv-logo-slogan.svg">                </a>
                                
            </div>

            <div class="navbar" id="main-nav" style="overflow: initial;">
                <ul>

                                        
                    					
											
							
                    
                    
                    
                                                
                        
                                                
                                            
                                                <li class="nav-button library-button  new" data-priority="2" data-original-order="4" style="display: list-item;">
                            <a href="/discover" class="nav-link">
                                Publiskais saturs                                <div class="tag new">Jaunums!</div>
                            </a>
                        </li>
                                              
                                                <li class="nav-button showonfirstload_mid nav-upload nav-bottom" data-priority="2" data-original-order="5" style="display: list-item;">
                            <a class="nav-link" href="javascript:void(0);" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast'); setTimeout(()=>{$('#uploadifive-file_upload').shake();}, 50); gaev('HeaderClick', 'Upload', '');"></a>
                        </li>
                          
                        
                                                <li class="nav-button showonfirstload_mid nav-plans nav-bottom" data-priority="2" data-original-order="6">
                            <a class="nav-link" href="/storage-plans" onclick="gaev('HeaderClick', 'Storage_plans_and_prices', '');">
                                <div class="top">Cenas</div>
                                <div class="bottom">PRO</div>
                            </a>
                        </li>
                        
                        

                        
                                                
                            
                        
                        
                        
                                                <li class="nav-button darker blue showonfirstload_small nav-files nav-bottom nav-hideTop" data-priority="1" style="margin-right: 6px; display: list-item;" data-original-order="7">
                            <a href="/filebrowser" onclick="gaev('HeaderClick', 'My_files', 'NotLoggedIn');" class="nav-link">
                                Mani faili                            </a>
                        </li>
                                                                    <li class="nav-right nav-button darker showonfirstload_small nav-bottom nav-login" data-priority="0" data-original-order="8">
                            <div id="login">
                                <a href="javascript:void(0);" onclick="gaev('HeaderClick', 'Log_in', ''); showSignIn(); return false;" id="login_button" class="">
                                    <span id="login_button_text">Ieiet</span>
                                </a>
                            </div>
                        </li>

                        <li class="nav-right nav-button red showonfirstload_small" data-priority="1" data-original-order="9">
                            <div>
                                <a href="javascript:void(0);" onclick="gaev('HeaderClick', 'Sign_up', ''); showCreateAccount(); return false;" id="signup">Jauns</a>
                            </div>
                        </li>

                        
                                                <li class="nav-right showonfirstload_mid" id="lang_switch" data-priority="2" data-original-order="10">
                            <div class="header_menu_wrap">
                                <div class="header_menu_label">
                                    <img id="lang_switch_icon_dark" src="/images/UI_icons/globe.svg">
                                    <span class="currentlang">LV</span>
                                </div>
                                <div class="header_menu_drawer right">
                                    <a class="drawer-item" href="javascript:changeLanguage('en', 'EN');">English (EN)</a>
                                                                        <a class="drawer-item" href="javascript:changeLanguage('es', 'ES');">Español (ES)</a>
                                    <a class="drawer-item" href="javascript:changeLanguage('de', 'DE');">Deutsch (DE)</a>
                                    <a class="drawer-item" href="javascript:changeLanguage('fi', 'FI');">Suomi (FI)</a>
                                    <!-- <a class="drawer-item" href="javascript:changeLanguage('ko', 'KO');">한국어 (KO)</a> -->
                                                                        <a class="drawer-item" href="javascript:changeLanguage('ru', 'РУ');">Русский (РУ)</a>
                                                                        <a class="drawer-item" href="javascript:changeLanguage('uk', 'UK');">Українська (UA)</a>
                                                                        <a class="drawer-item" href="javascript:changeLanguage('lv', 'LV');">Latviešu (LV)</a>
                                </div>
                            </div>
                        </li>
                                            
                </ul>
            </div>
            <script>
                function addAnonymousUploads()
                {
                    var addUploads = confirm('Vai piesaistīt savam kontam augšupielādes, kas ir veiktas iepriekš no šīs ierīces? Varēsi tās pārvaldīt vai dzēst.');
                    if (addUploads == true)
                    {
                        $('.add_anonym_uplaods').val('1');
                    }
                }
            </script>

            <div id="mega-menu" class="collapse">
                <div class="container event_ignore_click">
                    <ul id="nav-functional" class="has-items event_ignore_click"><li data-priority="10" class="nav-button" data-original-order="0" data-original-width="132" style="display: list-item;">
                        <div class="header_menu_wrap">
                            <div class="header_menu_label">Risinājumi</div>
                            <div class="header_menu_drawer">
                                <a class=" SyncShare withicon drawer-item" href="/sync-share" onclick="gaev('HeaderClick', 'Solutions-Storage', '');">
                                    Datu glabāšana                                    <div class="desc">Sinhronizēšana un koplietošana</div>
                                </a>
                                						
                                <a class=" Filebox withicon drawer-item" href="/upload-form" onclick="gaev('HeaderClick', 'Solutions-Filebox', '');">
                                    Integrējiet failu ielādi vai API                                    <div class="desc">Failu ielādes forma weblapām</div>
                                </a>								
														                            
                                <a class="PublicProfiles withicon drawer-item" href="/public-profiles" onclick="gaev('HeaderClick', 'Solutions-Publish', '');">
                                    Satura publicēšana                                    <div class="desc">Publisks foto, video un dokumentu katalogs</div>
                                </a>
								
                                <a class=" SportEvents withicon drawer-item" href="/events" onclick="gaev('HeaderClick', 'Solutions-SportEvents', '');">
                                    Sportam un pasākumiem                                    <div class="desc">Satura publicēšana no notikumiem</div>
                                </a>
								
								<a class=" SellFiles withicon drawer-item" href="/sell-files" onclick="gaev('HeaderClick', 'Solutions-SellFiles', '');">
                                    Satura pārdošana                                    <div class="desc">Pelni pārdodot saturu publiski vai privāti</div>
                                </a>
                                                                                  
									<a class=" ServerRental withicon drawer-item" href="/servers" onclick="gaev('HeaderClick', 'Solutions-Servers', '');">
										Virtuālo serveru noma										<!--<div class="desc">Windows/Linux virtuālie serveri</div>-->
									</a>         

									<a class="withicon drawer-item DVS" href="/DVS-demo" onclick="gaev('HeaderClick', 'Solutions-DVS', '');">
										Dokumentu vadības sistēma										<div class="drawer-item-new">Jaunums!</div>
									</a>
								                                <!--
                                <a class=" Backup withicon drawer-item" href="/backup" onclick="gaev('HeaderClick', 'Solutions-Backup', '');">
                                    Rezerves kopiju veidošana                                    <div class="desc">Šifrētu kopiju risinājums</div>
                                </a>
								-->								
                            </div>
                        </div>
                    </li><li data-priority="2" class="nav-button" data-original-order="1" style="display: list-item;" data-original-width="126">
							<div class="header_menu_wrap">
								<div class="header_menu_label">Lietotnes</div>
								<div class="header_menu_drawer">
								
                                <a class="drawer-item" href="https://chat.failiem.lv" onclick="gaev('HeaderClick', 'Apps-Chat-AI', '');" target="_blank"> AI chat.failiem.lv</a>

									<a class="drawer-item" href="https://play.google.com/store/apps/details?id=com.files.fm" onclick="gaev('HeaderClick', 'Apps-Android', '');" target="_blank"> Mobile: Android <div class="drawer-item-new">Jaunums!</div></a>

									<a class="drawer-item" href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" onclick="gaev('HeaderClick', 'Apps-IOS', '');" target="_blank"> Mobile: Apple iOS <div class="drawer-item-new">Jaunums!</div></a>

									<a class="drawer-item" href="/sync-share#setup" onclick="gaev('HeaderClick', 'Apps-Desktop', '');">  Sync priekš Windows | MacOS | Linux</a>

									<!--<a class="drawer-item" href="/backup#setup" onclick="gaev('HeaderClick', 'Apps-Backup', '');" > Backup Windows | MacOS | Linux</a>-->

									<a class="drawer-item" href="/webdav-info" onclick="gaev('HeaderClick', 'Apps-Webdav', '');">Tīkla disks ar webdav</a>

								</div>
							</div>
						</li><li data-priority="2" class="nav-button" data-original-order="2" style="display: list-item;" data-original-width="83">
                            <div class="header_menu_wrap">
                                <div class="header_menu_label">Rīki</div>
                                <div class="header_menu_drawer">

                                    
                                                                                                                    <a class="withicon drawer-item Useroutline" target="_blank" href="/public-profiles" onclick="gaev('HeaderClick', 'Tools-My-public-profile', '');">Mans publiskais profils</a>
                                                                                                               
                                    <a class="withicon drawer-item ConvertMp4" href="?convert-to-mp4" onclick="gaev('HeaderClick', 'Tools-convert-to-mp4', '');">Konvertēt video uz mp4</a> 
                                    <a class="withicon drawer-item ConvertPDF" href="?convert-to-pdf" onclick="gaev('HeaderClick', 'Tools-convert-to-pdf', '');">Konvertēt doc uz PDF</a>
                                    
                                                                        <a class="withicon drawer-item Eparakts" href="/eparaksts" onclick="gaev('HeaderClick', 'Tools-eparakstit', '');"> eParakstīt dokumentus </a>
                                    <a class="withicon drawer-item DVS" href="/DVS-demo" onclick="gaev('HeaderClick', 'Tools-DVS', '');"> Dokumentu vadības sistēma </a>
                                    <a class="withicon drawer-item Print" href="/foto-druka" onclick="gaev('HeaderClick', 'Tools-fotodruka', '');">Pasūtīt foto izdrukas</a>
                                    <a class="withicon drawer-item Cup" href="/foto-drukas-produkti" onclick="gaev('HeaderClick', 'Tools-Produktu-apdruka', '');">Pasūtīt produktu apdruku</a>
                                     
                                    
                                                                        <a class="withicon drawer-item VideoCall" href="https://video.failiem.lv/b/auth/openid_connect" onclick="gaev('HeaderClick', 'Tools-Video-room', '');">Izveidot video konferenci</a>
                                    
                                </div>
                            </div>
                        </li><li class="nav-button" data-priority="2" data-original-order="3" style="display: list-item;" data-original-width="114">
                            <a href="/business" class="nav-link">
                                Biznesam                            </a>
                        </li></ul>
                </div>
                <div class="overlay"></div>
            </div>
            <div id="mega-menu-close"></div>
        </div>

        <div id="navbar-css"></div>
    </nav>
    
</header>


<script>

            if (!$.cookie('new_library'))
        {
            $('.library-button').addClass('new');
            $('.navbar-toggler-stripes').addClass('new');
            
        }

        $('.library-button').on('click', function () {
            if ( $(this).hasClass('new') )
            {
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=failiem.lv';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=.failiem.lv';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=files.fm';
                document.cookie = 'new_library="1"; max-age=' + (90*24*60*60) + ' ; path=/ ; domain=.files.fm';

                $(this).removeClass('new');
                $('.navbar-toggler-stripes').removeClass('new');
            }
        });

        
    $('#mega-menu .other-apps LI').on('click', function () {
        if ( $('A:first-child', this).attr('href') != null && $('A:first-child', this).attr('href').indexOf('javascript:') == -1 )
        {
            window.location = $('A:first-child', this).attr('href');
        }
    });
    
    $('#mega-menu-close').on('click', function () {
        $( '#navbar-toggler-chb' ).prop('checked', false);
        $( '#header' ).css('z-index', '');
    });

    $('.header_menu_wrap').on('mouseleave', function (e)
    {
        var $elem = $(this);
        
        if (! $elem.parents('#mega-menu').length) 
        {
            if ($elem.is("#usergreeting") ){
                setTimeout(function() {
                    if(! $('#usergreeting:hover').length > 0)
                    {
                        $elem.find('.header_menu_label').removeClass('open');
                    }
                }, 500);
            }
            else
            {
                if(!$elem[ 0 ].matches(":hover"))
                {
                    $elem.find('.header_menu_label').removeClass('open');
                }
            }
        }
    });

    $('.header_menu_label').on('click', function () {
       
        var that = this;

        $(".header_menu_label").filter(function() {
            // check object in list is not current object
            if ($(this).parents('#mega-menu').length)
            {
                return false;
            }
            return this != that;
        }).removeClass('open');

        $(this).toggleClass('open');
       
        var $elem = $(this);
        
        $elem.parent().find('.header_menu_drawer').css({
            'left': '', 
            'right': ''
        });
        
        var bounding = $elem.parent().find('.header_menu_drawer')[0].getBoundingClientRect();
        var boundingParent = $elem[0].getBoundingClientRect();
        if (bounding.left < 0)
        {
            $elem.parent().find('.header_menu_drawer').css({
                'left': -boundingParent.left+5 + 'px', 
                'right': 'unset'
            });
        }
        if (bounding.right > (window.innerWidth || document.documentElement.clientWidth))
        {
            $elem.parent().find('.header_menu_drawer').css({
                'left': 'unset', 
                'right': -(window.innerWidth-boundingParent.right)+20 + 'px'
            });
        }
    });
</script>

            <script src="/js/Captcha/Google/LazyGoogleReCaptchaV2.js"></script>
            <script>
                objLazyGoogleReCaptchaV2.strLanguageKey = "lv";
                objLazyGoogleReCaptchaV2.strSiteKey = "6LflqXQUAAAAAP2CM782IqIgjzooEt9soXTCwxX2";
            </script>
<link rel="stylesheet" type="text/css" media="all" href="/css/sign_in_form.css?v=35">




<div id="sign-in" class="modal-container" tabindex="-1" role="dialog" aria-labelledby="createaccount-header signin-header" aria-hidden="true" style="display:none">

	<div class="modal-inner">


		<!-- START : Header -->
		<div id="sign-in-header">

			<span id="signin-header" onclick="if( !$( '#signin-modal-content' ).is( ':visible' ) ) showSignIn(); return false;">
				Ieiet				<img id="signin-header_icon_inactive" src="/images/signup_form/log_in.svg?v=2" alt="Login to upload files">
				<img id="signin-header_icon_active" src="/images/signup_form/log_in_blue.svg?v=2" alt="Login to upload files">
			</span>

                            <span id="createaccount-header" onclick="if( !$('#createaccount-modal-content').is(':visible')) showCreateAccount(); return false;">
                    Reģistrēties                </span>
            
		</div>
		<!-- END : Header -->

        <div id="createaccount-referral-container" style="display:none">
            <span class="referrer-container">
                Tevi ielūdza lietotājs&nbsp;<span id="createaccount-referral-referrer"></span>&nbsp;izveidot kontu un saņemt 1GB            </span>
            
            <hr>
        </div>
        
                
        <div id="createaccount-message-container">
        	<table class="alert_container alert_container_danger">
                <tbody><tr>
                    <td><i class="fa fa-exclamation-circle"></i></td>
                    <td><div class="alert_main_text"></div></td>
                </tr>
            </tbody></table>
        </div>
        
		<!-- START : Create account form -->
		<div id="createaccount-modal-content" class="modal-content">
            <div class="info"></div>
            
            			<!-- START : Social create account -->
			<div class="signin-modal-content-social">

				<div class="signin-modal-content-social-title">Izveidojiet kontu bezmaksas:</div>

				<div class="signin-modal-content-social-buttons-container signin-modal-content-social-buttons-container-2-buttons">

					<!-- 
					<div class="fb_button social_login_button" onclick="checkSocialLogin('facebook');">
						<img src="/images/signup_form/login-facebook.svg?v=2" alt="Sign up with Facebook to upload files for free">
						<span>Facebook</span>
					</div>
                    -->
					
					<div class="standard_button google_button social_login_button" onclick="checkSocialLogin('google');">
						<img src="/images/signup_form/login-google.svg?v=2" alt="Sign up with Google to upload files for free">
						<span>Google</span>
					</div>

					<div class="standard_button ms_button social_login_button" onclick="checkSocialLogin('microsoft');">
                        <img src="/images/signup_form/login-microsoft.svg" alt="Sign up with Microsoft to upload files for free">
						<span>Microsoft</span>
					</div>
					
                    <div class="justify_el"></div>

				</div>

			</div>
			<!-- END : Social create account -->

			<div class="or-delimiter">
				vai			</div>
							
			<!-- START : Simple create account -->
			<div id="createaccount-simple-container">
                <input id="createaccount-referral-hash" name="inviter_hash" type="hidden">
                <input id="createaccount-referral-user" name="inviter_user" type="hidden">

                <div id="register_coupon_code">
                    <div class="input-label">
                        <label for="register_coupon_code_input">Kupona kods</label>
                        <input id="register_coupon_code_input" name="coupon_code" type="text">
                    </div>
                    <div class="createaccount-input-container"></div>
                </div>
                    
                <div class="no-coupon-link">
                    <a href="" onclick="revertFormFromCoupon(); return false">Man nav kupona koda »</a>
                </div>

                <div class="input-label">
                    <label for="createaccount_name">Vārds</label>
                    <input id="createaccount_name" name="createaccount_name" type="text" autocomplete="off">
                </div>

                <div class="input-label">
                    <label for="createaccount_surname">Uzvārds</label>
                    <input id="createaccount_surname" name="createaccount_surname" type="text" autocomplete="off">
                </div>

                <div class="input-label">
                    <label for="createaccount_email">E-pasts</label>
                    <input id="createaccount_email" name="createaccount_email" type="email" autocomplete="off" onchange="createUsername(this.value);">
                </div>

                <div class="input-label">
                    <label for="createaccount_password">Parole</label>
                    <input id="createaccount_password" name="createaccount_password" type="password" autocomplete="off">
                </div>

				<div class="justify_el"></div>

								<!-- 
				<div id="business_account_chechbox_container">
					<input id="create_business_account" type="checkbox" onchange="toggleCreateBusinessAccount()">
					<label for="create_business_account">Man varētu vajadzēt biznesa funkcijas, es gribētu uzzināt vairāk</label>
				</div>
				
				<div id="create_business_account_container">

					<input id="createaccount_company_name" name="createaccount_company_name" type="text" autocomplete="off" placeholder="Uzņēmuma nosaukums" />
					<input id="createaccount_company_phone" name="createaccount_company_phone" type="text" autocomplete="off" placeholder="Telefona numurs" />
					<select name="createaccount_company_country" id="createaccount_company_country">

						<option value="">Valsts</option>
							<option value="Afghanistan" >Afghanistan</option>
							<option value="Albania" >Albania</option>
							<option value="Algeria" >Algeria</option>
							<option value="American Samoa" >American Samoa</option>
							<option value="Andorra" >Andorra</option>
							<option value="Angola" >Angola</option>
							<option value="Anguilla" >Anguilla</option>
							<option value="Antarctica" >Antarctica</option>
							<option value="Antigua and Barbuda" >Antigua and Barbuda</option>
							<option value="Argentina" >Argentina</option>
							<option value="Armenia" >Armenia</option>
							<option value="Aruba" >Aruba</option>
							<option value="Australia" >Australia</option>
							<option value="Austria" >Austria</option>
							<option value="Azerbaijan" >Azerbaijan</option>
							<option value="Bahamas" >Bahamas</option>
							<option value="Bahrain" >Bahrain</option>
							<option value="Bangladesh" >Bangladesh</option>
							<option value="Barbados" >Barbados</option>
							<option value="Belarus" >Belarus</option>
							<option value="Belgium" >Belgium</option>
							<option value="Belize" >Belize</option>
							<option value="Benin" >Benin</option>
							<option value="Bermuda" >Bermuda</option>
							<option value="Bhutan" >Bhutan</option>
							<option value="Bolivia" >Bolivia</option>
							<option value="Bonaire, Saint Eustatius and Saba" >Bonaire, Saint Eustatius and Saba</option>
							<option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
							<option value="Botswana" >Botswana</option>
							<option value="Bouvet Island" >Bouvet Island</option>
							<option value="Brazil" >Brazil</option>
							<option value="British Indian Ocean Territory" >British Indian Ocean Territory</option>
							<option value="British Virgin Islands" >British Virgin Islands</option>
							<option value="Brunei" >Brunei</option>
							<option value="Bulgaria" >Bulgaria</option>
							<option value="Burkina Faso" >Burkina Faso</option>
							<option value="Burundi" >Burundi</option>
							<option value="Cambodia" >Cambodia</option>
							<option value="Cameroon" >Cameroon</option>
							<option value="Canada" >Canada</option>
							<option value="Cape Verde" >Cape Verde</option>
							<option value="Cayman Islands" >Cayman Islands</option>
							<option value="Central African Republic" >Central African Republic</option>
							<option value="Chad" >Chad</option>
							<option value="Chile" >Chile</option>
							<option value="China" >China</option>
							<option value="Christmas Island" >Christmas Island</option>
							<option value="Cocos [Keeling] Islands" >Cocos [Keeling] Islands</option>
							<option value="Colombia" >Colombia</option>
							<option value="Comoros" >Comoros</option>
							<option value="Congo [DRC]" >Congo [DRC]</option>
							<option value="Congo [Republic]" >Congo [Republic]</option>
							<option value="Cook Islands" >Cook Islands</option>
							<option value="Costa Rica" >Costa Rica</option>
							<option value="Croatia" >Croatia</option>
							<option value="Cuba" >Cuba</option>
							<option value="Curacao" >Curacao</option>
							<option value="Cyprus" >Cyprus</option>
							<option value="Czech Republic" >Czech Republic</option>
							<option value="Denmark" >Denmark</option>
							<option value="Djibouti" >Djibouti</option>
							<option value="Dominica" >Dominica</option>
							<option value="Dominican Republic" >Dominican Republic</option>
							<option value="East Timor" >East Timor</option>
							<option value="Ecuador" >Ecuador</option>
							<option value="Egypt" >Egypt</option>
							<option value="El Salvador" >El Salvador</option>
							<option value="Equatorial Guinea" >Equatorial Guinea</option>
							<option value="Eritrea" >Eritrea</option>
							<option value="Estonia" >Estonia</option>
							<option value="Ethiopia" >Ethiopia</option>
							<option value="Falkland Islands" >Falkland Islands</option>
							<option value="Faroe Islands" >Faroe Islands</option>
							<option value="Fiji" >Fiji</option>
							<option value="Finland" >Finland</option>
							<option value="France" >France</option>
							<option value="French Guiana" >French Guiana</option>
							<option value="French Polynesia" >French Polynesia</option>
							<option value="French Southern Territories" >French Southern Territories</option>
							<option value="Gabon" >Gabon</option>
							<option value="Gambia" >Gambia</option>
							<option value="Georgia" >Georgia</option>
							<option value="Germany" >Germany</option>
							<option value="Ghana" >Ghana</option>
							<option value="Gibraltar" >Gibraltar</option>
							<option value="Greece" >Greece</option>
							<option value="Greenland" >Greenland</option>
							<option value="Grenada" >Grenada</option>
							<option value="Guadeloupe" >Guadeloupe</option>
							<option value="Guam" >Guam</option>
							<option value="Guatemala" >Guatemala</option>
							<option value="Guernsey" >Guernsey</option>
							<option value="Guinea" >Guinea</option>
							<option value="Guinea-Bissau" >Guinea-Bissau</option>
							<option value="Guyana" >Guyana</option>
							<option value="Haiti" >Haiti</option>
							<option value="Heard Island and McDonald Island" >Heard Island and McDonald Island</option>
							<option value="Honduras" >Honduras</option>
							<option value="Hong Kong" >Hong Kong</option>
							<option value="Hungary" >Hungary</option>
							<option value="Iceland" >Iceland</option>
							<option value="India" >India</option>
							<option value="Indonesia" >Indonesia</option>
							<option value="Iran" >Iran</option>
							<option value="Iraq" >Iraq</option>
							<option value="Ireland" >Ireland</option>
							<option value="Isle of Man" >Isle of Man</option>
							<option value="Israel" >Israel</option>
							<option value="Italy" >Italy</option>
							<option value="Ivory Coast" >Ivory Coast</option>
							<option value="Jamaica" >Jamaica</option>
							<option value="Japan" >Japan</option>
							<option value="Jersey" >Jersey</option>
							<option value="Jordan" >Jordan</option>
							<option value="Kazakhstan" >Kazakhstan</option>
							<option value="Kenya" >Kenya</option>
							<option value="Kiribati" >Kiribati</option>
							<option value="Kosovo" >Kosovo</option>
							<option value="Kuwait" >Kuwait</option>
							<option value="Kyrgyzstan" >Kyrgyzstan</option>
							<option value="Laos" >Laos</option>
							<option value="Latvia" >Latvia</option>
							<option value="Lebanon" >Lebanon</option>
							<option value="Lesotho" >Lesotho</option>
							<option value="Liberia" >Liberia</option>
							<option value="Libya" >Libya</option>
							<option value="Liechtenstein" >Liechtenstein</option>
							<option value="Lithuania" >Lithuania</option>
							<option value="Luxembourg" >Luxembourg</option>
							<option value="Macau" >Macau</option>
							<option value="Macedonia" >Macedonia</option>
							<option value="Madagascar" >Madagascar</option>
							<option value="Malawi" >Malawi</option>
							<option value="Malaysia" >Malaysia</option>
							<option value="Maldives" >Maldives</option>
							<option value="Mali" >Mali</option>
							<option value="Malta" >Malta</option>
							<option value="Marshall Islands" >Marshall Islands</option>
							<option value="Martinique" >Martinique</option>
							<option value="Mauritania" >Mauritania</option>
							<option value="Mauritius" >Mauritius</option>
							<option value="Mayotte" >Mayotte</option>
							<option value="Mexico" >Mexico</option>
							<option value="Micronesia" >Micronesia</option>
							<option value="Moldova" >Moldova</option>
							<option value="Monaco" >Monaco</option>
							<option value="Mongolia" >Mongolia</option>
							<option value="Montenegro" >Montenegro</option>
							<option value="Montserrat" >Montserrat</option>
							<option value="Morocco" >Morocco</option>
							<option value="Mozambique" >Mozambique</option>
							<option value="Myanmar [Burma]" >Myanmar [Burma]</option>
							<option value="Namibia" >Namibia</option>
							<option value="Nauru" >Nauru</option>
							<option value="Nepal" >Nepal</option>
							<option value="Netherlands" >Netherlands</option>
							<option value="Netherlands Antilles" >Netherlands Antilles</option>
							<option value="New Caledonia" >New Caledonia</option>
							<option value="New Zealand" >New Zealand</option>
							<option value="Nicaragua" >Nicaragua</option>
							<option value="Niger" >Niger</option>
							<option value="Nigeria" >Nigeria</option>
							<option value="Niue" >Niue</option>
							<option value="Norfolk Island" >Norfolk Island</option>
							<option value="North Korea" >North Korea</option>
							<option value="Northern Mariana Islands" >Northern Mariana Islands</option>
							<option value="Norway" >Norway</option>
							<option value="Oman" >Oman</option>
							<option value="Pakistan" >Pakistan</option>
							<option value="Palau" >Palau</option>
							<option value="Palestinian Territories" >Palestinian Territories</option>
							<option value="Panama" >Panama</option>
							<option value="Papua New Guinea" >Papua New Guinea</option>
							<option value="Paraguay" >Paraguay</option>
							<option value="Peru" >Peru</option>
							<option value="Philippines" >Philippines</option>
							<option value="Pitcairn Islands" >Pitcairn Islands</option>
							<option value="Poland" >Poland</option>
							<option value="Portugal" >Portugal</option>
							<option value="Puerto Rico" >Puerto Rico</option>
							<option value="Qatar" >Qatar</option>
							<option value="Romania" >Romania</option>
							<option value="Russian Federation" >Russian Federation</option>
							<option value="Rwanda" >Rwanda</option>
							<option value="Réunion" >Réunion</option>
							<option value="Saint Barthélemy" >Saint Barthélemy</option>
							<option value="Saint Helena" >Saint Helena</option>
							<option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
							<option value="Saint Lucia" >Saint Lucia</option>
							<option value="Saint Martin" >Saint Martin</option>
							<option value="Saint Pierre and Miquelon" >Saint Pierre and Miquelon</option>
							<option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
							<option value="Samoa" >Samoa</option>
							<option value="San Marino" >San Marino</option>
							<option value="Saudi Arabia" >Saudi Arabia</option>
							<option value="Senegal" >Senegal</option>
							<option value="Serbia" >Serbia</option>
							<option value="Serbia and Montenegro" >Serbia and Montenegro</option>
							<option value="Seychelles" >Seychelles</option>
							<option value="Sierra Leone" >Sierra Leone</option>
							<option value="Singapore" >Singapore</option>
							<option value="Sint Maarten" >Sint Maarten</option>
							<option value="Slovakia" >Slovakia</option>
							<option value="Slovenia" >Slovenia</option>
							<option value="Solomon Islands" >Solomon Islands</option>
							<option value="Somalia" >Somalia</option>
							<option value="South Africa" >South Africa</option>
							<option value="South Georgia and the South Sandwich Islands" >South Georgia and the South Sandwich Islands</option>
							<option value="South Korea" >South Korea</option>
							<option value="Spain" >Spain</option>
							<option value="Sri Lanka" >Sri Lanka</option>
							<option value="Sudan" >Sudan</option>
							<option value="Suriname" >Suriname</option>
							<option value="Svalbard and Jan Mayen" >Svalbard and Jan Mayen</option>
							<option value="Swaziland" >Swaziland</option>
							<option value="Sweden" >Sweden</option>
							<option value="Switzerland" >Switzerland</option>
							<option value="Syria" >Syria</option>
							<option value="São Tomé and Príncipe" >São Tomé and Príncipe</option>
							<option value="Taiwan" >Taiwan</option>
							<option value="Tajikistan" >Tajikistan</option>
							<option value="Tanzania" >Tanzania</option>
							<option value="Thailand" >Thailand</option>
							<option value="Togo" >Togo</option>
							<option value="Tokelau" >Tokelau</option>
							<option value="Tonga" >Tonga</option>
							<option value="Trinidad and Tobago" >Trinidad and Tobago</option>
							<option value="Tunisia" >Tunisia</option>
							<option value="Turkey" >Turkey</option>
							<option value="Turkmenistan" >Turkmenistan</option>
							<option value="Turks and Caicos Islands" >Turks and Caicos Islands</option>
							<option value="Tuvalu" >Tuvalu</option>
							<option value="U.S. Minor Outlying Islands" >U.S. Minor Outlying Islands</option>
							<option value="U.S. Virgin Islands" >U.S. Virgin Islands</option>
							<option value="Uganda" >Uganda</option>
							<option value="Ukraine" >Ukraine</option>
							<option value="United Arab Emirates" >United Arab Emirates</option>
							<option value="United Kingdom" >United Kingdom</option>
							<option value="United States"  selected>United States</option>
							<option value="Uruguay" >Uruguay</option>
							<option value="Uzbekistan" >Uzbekistan</option>
							<option value="Vanuatu" >Vanuatu</option>
							<option value="Vatican City" >Vatican City</option>
							<option value="Venezuela" >Venezuela</option>
							<option value="Viet Nam" >Viet Nam</option>
							<option value="Wallis and Futuna" >Wallis and Futuna</option>
							<option value="Western Sahara" >Western Sahara</option>
							<option value="Yemen" >Yemen</option>
							<option value="Zambia" >Zambia</option>
							<option value="Zimbabwe" >Zimbabwe</option>
							<option value="Åland Islands" >Åland Islands</option>
					</select>

					<div class="justify_el"></div>

				</div>
                 -->
				
				                <!--
				<div id="your_public_profile_container_info_before">
					Savā profila lapā Tu varēsi publicēt un saņemt failus				</div>-->
				
				<div id="your_public_profile_container">
						
					<div id="your_public_profile_label_text_before">
						Tavs profils:
					</div>
					
					<div id="your_public_profile_label">
						
						<span id="your_public_profile_label_text">
							Tavs profils:
						</span>
						
						<span id="your_public_profile_label_host">
							https://failiem.lv/						</span>
						
					</div>

                    <div id="your_public_profile_field_input">
                        <input id="createaccount_username" name="createaccount_username" type="text" autocomplete="off" placeholder="Lietotājvārds" onkeyup="usernameChanged();">
                    </div>
					
				</div>
								
				<div id="createaccount_coupon_info" onclick="showSignIn()">
					Man jau ir reģistrēts Failiem.lv konts »    			</div>

				<div id="createaccount_error_msg" class="error_msg"></div>

                                            <div class="sign_in_captcha" id="createaccount_captcha">
                        <div class="google-recaptcha-v2-container" id="C18DC666-A97D-4E9E-C577-16F170ADEF89"></div>                            <script>
                                function loadCreateAccountCaptcha()
                                {
                                    (function () {
            var init = function (){
                // Wait for include to load
                if ( typeof(objLazyGoogleReCaptchaV2) !== "undefined" )
                {
                    objLazyGoogleReCaptchaV2.initInstance (
                        "C18DC666-A97D-4E9E-C577-16F170ADEF89",
                        captchaCreateAccountLoaded,
                        captchaCreateAccountSubmitted
                    )
                }
                else
                {
                    setTimeout(init, 50);
                }
            };
            init();
        })();
                                }
                            </script>

                        </div>
                                        
                <div class="sign_in_submit_bn" onclick="checkCreateAccountForm();">
                    Veidot kontu                    <img src="/images/signup_form/sign_up.svg" alt="Sign up to upload files for free">
                </div>

                <div id="createaccount-modal-link-container">
                					<a id="createaccount-modal-coupon-link" href="javascript:void(0)" onclick="adaptFormForCoupon()">
						<span>Izmantot kupona kodu</span>
					</a>
                				</div>
				
								<div id="createaccount_info">
    				Lietojot šo vietni, jūs piekrītiet noteikumiem un datu apstrādei: <a href="/terms?source=sign-up" target="_blank">Uzzināt vairāk »</a>    			</div>

                <div id="createaccount_info_ico">
                    Reģistrēti lietotāji var glabāt un piekļūt failiem pastāvīgi, kā arī var tos publicēt savā profilā. <a href="/storage-plans" target="_blank">Vairāk info »</a>                </div>
                    			<!--
				<div id="createaccount_termsandcondtotions_hr"></div>
				
				<div id="createaccount_termsandcondtotions">
					Izveidojot kontu, Jūs piekrītat					<a href="/terms" target="blank">lietošanas noteikumiem »</a>
				</div>
				-->
                <div id="createaccount_termsandcondtotions_ico">
                    Izveidojot kontu, Jūs piekrītat <a href="/terms" target="blank">lietošanas noteikumiem »</a>                </div>
                
                <input id="register_from_ico" type="hidden" name="from_ico" value="0">
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">

			</div>
			<!-- END : Simple create account -->

		</div>
		<!-- END : Create account form -->


		<!-- START : Sign in form -->
		<div id="signin-modal-content" class="modal-content">
            
            <table id="signin-modal-content-error" class="alert_container alert_container_info">
                <tbody><tr>
                    <td>
                        <i class="fa fa-exclamation-circle"></i>
                    </td>
                    <td>
                        <div class="alert_main_text"></div>
                    </td>
                </tr>
            </tbody></table>


            			<!-- START : Social sign in -->
			<div class="signin-modal-content-social">

				<div class="signin-modal-content-social-title">Izvēlieties pierakstīšanās metodi:</div>

				<div class="signin-modal-content-social-buttons-container">

					<div class="standard_button fb_button social_login_button" onclick="checkSocialLogin('facebook');">
						<img src="/images/signup_form/login-facebook.svg?v=2" alt="Login with Facebook to upload files for free">
						<span>Facebook</span>
					</div>


					<div class="standard_button google_button social_login_button" onclick="checkSocialLogin('google');">
						<img src="/images/signup_form/login-google.svg?v=2" alt="Login with Google to upload files for free">
						<span>Google</span>
					</div>

					<div class="standard_button ms_button social_login_button" onclick="checkSocialLogin('microsoft');">
                        <img src="/images/signup_form/login-microsoft.svg" alt="Sign up with Microsoft to upload files for free">
						<span>Microsoft</span>
					</div>

					<div class="justify_el"></div>

				</div>

			</div>
			<!-- END : Social sign in -->
			
			<div class="or-delimiter">
				vai			</div>
			<!-- START : Simple sign in -->
			<div id="signin-modal-content-simple">

				<form onsubmit="checkSignInForm(); return false;" id="login_filesfm">

                    <div id="signin_input_container">

                        <div class="input-label l_coupon_code">
                            <label for="l_coupon_code">Kupona kods</label>
                            <input id="l_coupon_code" name="coupon_code" type="text">
                        </div>
                    
                        <div class="no-coupon-link">
                            <a href="" onclick="revertFormFromCoupon(); return false">Man nav kupona koda »</a>
                        </div>

                        <div class="input-label">
                            <label for="l_user">Lietotājvārds vai e-pasts</label>
                            <input id="l_user" name="l_user" type="text">
                        </div>

                        <div class="input-label">
                            <label for="l_pass">Parole</label>
                            <input id="l_pass" name="l_pass" type="password">
                        </div>
    					<div class="justify_el"></div>
					</div>

                    
					<a id="signin-modal-forgot-link" href="" onclick="showForgotPassword(); return false">
						<span>Aizmirsi paroli?</span>
					</a>
					
					<div id="signin_coupon_info" onclick="showCreateAccount()">
                        Man nav reģistrēts Failiem.lv konts »                    </div>

					<div id="signin_error_msg" class="error_msg"></div>
                                            
					<input type="submit" style="display: none;">

					<div class="sign_in_submit_bn" onclick="checkSignInForm()">
    					Ieiet    					<img src="/images/signup_form/sign_up.svg" alt="Sign up">
    				</div>

				</form>

				<div id="signin-modal-link-container">
					<a id="signin-modal-coupon-link" href="javascript:void(0)" onclick="adaptFormForCoupon()">
						<span>Izmantot kupona kodu</span>
					</a>
				</div>
				
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">

			</div>
			<!-- END : Simple sign in -->

		</div>
		<!-- END : Sign in form -->


		<!-- START : Forgot password form -->
		<div id="forgotpassword-modal-content" class="modal-content">

			<form onsubmit="return false;">

				<div id="forgotpassword_text">
					Ievadiet savu e-pasta adresi, lai atiestatītu paroli. Pārbaudiet arī spam mapi.				</div>
				
                <div class="input-label forgotpassword_email">
                    <label for="forgotpassword_email">E-pasts</label>
                    <input id="forgotpassword_email" type="text">
                </div>

				<div id="forgotpassword_error_msg" class="error_msg"></div>
				
				<div class="sign_in_submit_bn" onclick="checkForgotPasswordForm();">
					Nosūtīt epastu					<img src="/images/signup_form/sign_up.svg" alt="Nosūtīt epastu">
				</div>
    				
			</form>

		</div>
		<!-- END : Forgot password form -->


		<!-- START : Add cookie uploads suggestion -->
		<div id="addcookieuploads-modal-content" class="modal-content">

				<div id="addcookieuploads_info">
					Vai piesaistīt savam kontam augšupielādes, kas ir veiktas iepriekš no šīs ierīces? Varēsi tās pārvaldīt vai dzēst.				</div>

				<div id="addcookieuploads_button_container">
    				<div class="addcookieuploads_button" id="addcookieuploads_button_no" onclick="setAddCookieUploads(false)">
    					Nē    				</div>
                    <div class="addcookieuploads_button" id="addcookieuploads_button_yes" onclick="setAddCookieUploads(true)">
    					Jā    				</div>
				</div>

		</div>
		<!-- END : Add cookie uploads suggestion -->


		<!-- START : Success message of account creation -->
		<div id="createaccountsuccessmessage-modal-content" class="modal-content">

				<div id="createaccountsuccessmessage_info">
					<div>
						Paldies! Jums ir izveidots Failiem.lv lietotāja konts un uz e-pastu nosūtīti konta pieejas dati.					</div>
					<div>
						Aizveriet šo formu, aizpildiet mapes informāciju un spiediet pogu "Saglabāt un nosūtīt adresi".					</div>
				</div>

				<div id="createaccountsuccessmessage_button" onclick="hideModal('sign-in', true)">
					Aizvērt				</div>

		</div>
		<!-- END : Success message of account creation -->

        <div id="twofactor_authcode-modal-content" class="modal-content" style="display:none">
            <div id="twofactor_authcode_container">
                <div id="twofactor_error_msg" class="error_msg"></div>

                <div class="twofactor_code_required_message">
                    Lai pieslēgtos, lūdzu, ievadiet savu divu faktoru autentifikācijas kodu, kurš tikko tika nosūtīts uz Jūsu kontam reģistrēto e-pasta adresi.                </div>

                <input id="twofactorcode" name="twofactorcode" type="text" placeholder="Autentifikācijas kods">

                <div class="sign_in_submit_bn" onclick="trySignIn( $('#twofactorcode').val() )">
                    Ieiet                    <img src="/images/signup_form/sign_up.svg" alt="Ieiet">
                </div>

                <div id="twofactor-modal-link-container">
                    <a id="twofactor-modal-goback-link" href="" onclick="bolPrevFinished_checkSignInForm = true; showSignIn(); return false">
                        <span>Atpakaļ</span>
                    </a>
                </div>
            </div>
        </div>

		<!-- START : Social login -->
		<div style="display: none">
			<form id="login_facebook" method="get" action="/">
				<input type="hidden" name="fb_login" value="">
				<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
                <input type="hidden" name="inviter_user" value="">
                <input type="hidden" name="inviter_hash" value="">
				<input type="submit" class="standard_button" value="Ienākt ar Facebook kontu" style="width: 100%">
			</form>

			<form id="login_google" method="get" action="/">
				<input type="hidden" name="google_login" value="">
				<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
                <input type="hidden" name="inviter_user" value="">
                <input type="hidden" name="inviter_hash" value="">
				<input type="submit" class="standard_button" value="Ienākt ar Google kontu" style="width: 100%">
			</form>

			<form id="login_microsoft" method="get" action="/">
				<input type="hidden" name="microsoft_login" value="">
				<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
                <input type="hidden" name="inviter_user" value="">
                <input type="hidden" name="inviter_hash" value="">
				<input type="submit" class="standard_button" value="Ienākt ar Microsoft kontu" style="width: 100%">
			</form>
			<form id="login_draugiem" method="get" action="/">
				<input type="hidden" name="draugiem_login" value="">
				<input type="hidden" name="add_anonym_uplaods" class="add_anonym_uplaods" value="">
				<input type="hidden" name="login_return_url" class="login_return_url" value="">
				<input type="hidden" name="dont_redirect_after_login" class="dont_redirect_after_login" value="">
				<input type="submit" class="standard_button" value="Ienākt ar Draugiem kontu" style="width: 100%">
			</form>
		</div>
		<!-- END : Social login -->

		<div id="sign-in_disable_form">
			<i class="fa fa-spinner fa-spin"></i>
		</div>

	</div>

	<div class="modal-close" id="sign-in_modal_close" data-dismiss="modal" data-close="Aizvērt"></div>
</div>


<script>

	var bolRewriteUrlHash = true;
	
    var bolSigninCaptchaRequired = Boolean();
    var bolSignupCaptchaRequired = Boolean(1);
    
    var strSinginCaptchaContainerID = 'signin_captcha';
    var strSignupCaptchaContainerID = 'createaccount_captcha';
    
    
	function showCreateAccount( bolICO )
	{
        bolHasCookieUploadsFunc();
        if( typeof bolICO === 'undefined' )
        {
            // if switching forms, get bolICO from other form
            bolICO = $( "#register_from_ico" ).val() > 0;
        }
        
        $( '#signin-header' ).removeClass( 'active' );
        $( '#createaccount-header' ).addClass( 'active' );

		$( '#signin-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$('#createaccount-modal-content').show();
		
		if( bolICO )
        {
            $( "#business_account_chechbox_container" ).hide();
            $( "#createaccount_info_ico" ).show();
            $( "#createaccount_termsandcondtotions_ico" ).show( );
            $( "#createaccount_termsandcondtotions" ).hide( );
            $( "#createaccount_info" ).hide();
            $( "#register_from_ico" ).val( 1 );
        }
        else
        {
            $( "#business_account_chechbox_container" ).show();
            $( "#createaccount_termsandcondtotions" ).show( );
            $( "#createaccount_termsandcondtotions_ico" ).hide( );
            $( "#createaccount_info_ico" ).hide();
            $( "#createaccount_info" ).show();
            $( "#register_from_ico" ).val( 0 );
        }

		showModal( 'sign-in' );
  
		if ( bolSignupCaptchaRequired )
            loadCreateAccountCaptcha();
		
		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'sign_up';
		}
	}
	
	function setRegisterReferral( strInviter, hash, strInviteeEmail )
    {
        $( "#createaccount-referral-referrer" ).text( strInviter );
        $( "#createaccount-referral-container" ).show();
        
        if ( strInviteeEmail )
        {
            $( "#createaccount_email" )
                .val( strInviteeEmail )
                .attr( 'disabled', 'true' );
        }
    
        $("input[name='inviter_user']").val( strInviter );
        $("input[name='inviter_hash']").val( hash );
    }

	function showSignIn( bolICO )
	{
        bolHasCookieUploadsFunc();
	    if( typeof bolICO === 'undefined' )
        {
            // if switching forms, get bolICO from other form
            bolICO = $( "#register_from_ico" ).val() > 0;
        }

        $( '#signin-header' ).addClass( 'active' );
        $( '#createaccount-header' ).removeClass( 'active' );
        
	    	    if( typeof closeGallery === "function" )
        {
            closeGallery();
        }
        		
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();
        $( '#twofactor_authcode-modal-content' ).hide();
        
        if ( bolICO )
        {
            $( "#register_from_ico" ).val( 1 );
        }
        else
        {
            $( "#register_from_ico" ).val( 0 );
        }

		$( '#signin-modal-content' ).show();

		showModal( 'sign-in' );
  
		if ( bolSigninCaptchaRequired )
            loadSignInCaptcha();
		
		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'log_in';
		}
	}
    
    /*** Start: Captcha callbacks ***/
    
    function captchaCreateAccountLoaded( bolSuccess )
    {
        if ( ! bolSuccess )
        {
            addError(strSignupCaptchaContainerID, "createaccount_error_msg", "Notikusi kļūda! Lūdzu pārbaudiet savu interneta savienujumu un mēģiniet vēlāk. Ja problēma neatrisinās, lūdzu sazinieties ar [email protected]");
        }
        else
        {
            removeError( strSignupCaptchaContainerID );
            removeAllErrors( "createaccount_error_msg" );
            $("#"+strSignupCaptchaContainerID).append('<input type="hidden" class="captcha_response" value="" />');
        }
    }
    
    function captchaCreateAccountSubmitted( strResponse )
    {
        removeError( strSignupCaptchaContainerID );
        removeAllErrors( "createaccount_error_msg" );
        $('#' + strSignupCaptchaContainerID + ' .captcha_response').val( strResponse );
    }
    
    
    function captchaSignInLoaded( bolSuccess )
    {
        if ( ! bolSuccess )
        {
            addError(strSinginCaptchaContainerID, "signin_error_msg", "Notikusi kļūda! Lūdzu pārbaudiet savu interneta savienujumu un mēģiniet vēlāk. Ja problēma neatrisinās, lūdzu sazinieties ar [email protected]");
        }
        else
        {
            removeError( strSinginCaptchaContainerID );
            removeAllErrors( "signin_error_msg" );
            $("#"+strSinginCaptchaContainerID).append('<input type="hidden" class="captcha_response" value="" />');
        }
    }
    function captchaSignInSubmitted( strResponse )
    {
        removeError( strSinginCaptchaContainerID );
        removeAllErrors( "signin_error_msg" );
        $('#' + strSinginCaptchaContainerID + ' .captcha_response').val( strResponse );
    }
    /*** End: Captcha callbacks ***/
    
    
	function revertFormFromCoupon()
    {
	    $( '#sign-in' ).removeClass( 'coupun_form' );
    }
    
    function adaptFormForCoupon()
    {
	    $( '#sign-in' ).addClass( 'coupun_form' );

        const strUrlParams = new URLSearchParams(window.location.search);
		if( strUrlParams.has('coupon') ) 
		{
            var strCouponCode = strUrlParams.get('coupon');
        }
        if( strUrlParams.has('kupons') ) 
		{
            var strCouponCode = strUrlParams.get('kupons')
        }

        if( typeof strCouponCode !== 'undefined' )
        {
            $('#register_coupon_code_input').val(strCouponCode)
        }
    }

	function showForgotPassword( strEmail )
	{
	    if ( typeof strEmail != 'undefined' )
	    {
			$( '#sign-in-header' ).hide();
			$( '#forgotpassword_email' ).val( strEmail );
	    }

		$( '#signin-header' ).insertBefore( $( '#createaccount-header' ) );
		
		$( '#createaccount-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$( '#forgotpassword-modal-content' ).show();

		showModal( 'sign-in' );

		if ( bolRewriteUrlHash )
		{
			window.location.hash = 'forgot_password';
		}
	}

	function showAddCookieUploads()
	{
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#createaccountsuccessmessage-modal-content' ).hide();

		$( '#addcookieuploads-modal-content' ).show();

		showModal( 'sign-in' );
	}

	function showCreateAccountSuccessMessage()
	{
		$( '#createaccount-modal-content' ).hide();
		$( '#forgotpassword-modal-content' ).hide();
		$( '#signin-modal-content' ).hide();
		$( '#addcookieuploads-modal-content' ).hide();
		
		$( '#createaccountsuccessmessage-modal-content' ).show();
		
		showModal( 'sign-in' );
	}

	var bolHasCookieUploads = false;

    function bolHasCookieUploadsFunc()
    {
        $.each(document.cookie.split(/; */), function()  {
            var splitCookie = this.split('=');
            if(splitCookie[0].slice(0, 2) == 'uf')
            {
                bolHasCookieUploads = true;
            }
        });
    }

	var bolAddCookieUploadsAnswered = false;
	var bolAddCookieUploads = false;
	var strActiveForm = '';

	function setAddCookieUploads(val) {

		bolAddCookieUploads = val;
		bolAddCookieUploadsAnswered = true;

		if (val) {
			$('#login_facebook .add_anonym_uplaods').val('1');
			$('#login_google .add_anonym_uplaods').val('1');
			$('#login_draugiem .add_anonym_uplaods').val('1');
		}

		if (strActiveForm == 'signin') {
			checkSignInForm();
			showSignIn();
		}
		else if (strActiveForm == 'createaccount') {
			checkCreateAccountForm();
			showCreateAccount();
		}
		else if (strActiveForm == 'facebook' || strActiveForm == 'google' || strActiveForm == 'draugiem') {

			checkSocialLogin(strActiveForm);
		}
	}


	var bolPrevFinished_checkCreateAccountForm = true;
	function checkCreateAccountForm(bolCouponCheckResult) {
        
        var jqCaptchaResultInput = $('#' + strSignupCaptchaContainerID + ' .captcha_response');
	    
		if ( bolCouponCheckResult === undefined )
		{
			bolCouponCheckResult = null;
		}

		if (bolPrevFinished_checkCreateAccountForm)
		{
			bolPrevFinished_checkCreateAccountForm = false;
			$('#sign-in_disable_form').show();
   
			var bolCreateBusinessAccountDataOk = true;
			if (bolCreateBusinessAccount)
			{
				bolCreateBusinessAccountDataOk = false;

				if ($('#createaccount_company_name').val().trim().length < 4 ) {

					addError('createaccount_company_name', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu uzņēmuma nosaukumu! Tam jābūt vismaz 4 simbolus garam!');
				}
				else {

					removeError('createaccount_company_name');

					if ($('#createaccount_company_phone').val().trim().length < 4 ) {

						addError('createaccount_company_phone', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu uzņēmuma telefona numuru! Tam jābūt vismaz 4 ciparus garam!');
					}
					else {

						removeError('createaccount_company_phone');

						bolCreateBusinessAccountDataOk = true;
					}
				}
			}
            
            if ( $( "#register_coupon_code" ).css("display") !== "none" && !bolCouponCheckResult )
            {
                // coupon field is visible -> so it must be filled
                if( bolCouponCheckResult === false )
                {
                    addError( 'register_coupon_code_input', 'createaccount_error_msg', 'Ievadītais kupona kods nav derīgs, vai ir jau izmantots!' );
                    
                    bolPrevFinished_checkCreateAccountForm = true;
                    $('#sign-in_disable_form').hide();
                    return;
                }
                else if( !bolCouponCheckResult )
                {
                    removeError( 'register_coupon_code_input' );
                    
                    bolPrevFinished_checkCreateAccountForm = true;
                    verifyCouponCode( 'register_coupon_code_input', 'createaccount_error_msg', checkCreateAccountForm );
                    return;
                }                
            }
			
			if ( bolCreateBusinessAccountDataOk )
			{
				if ($('#createaccount_name').val().trim().length < 2 ) {

					addError('createaccount_name', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu vārdu! Tam jābūt vismaz 2 simbolus garam.');

					bolPrevFinished_checkCreateAccountForm = true;
					$('#sign-in_disable_form').hide();
				}
				else {

					removeError('createaccount_name');

					if ($('#createaccount_surname').val().trim().length < 2 ) {

						addError('createaccount_surname', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu uzvārdu! Tam jābūt vismaz 2 simbolus garam.');

						bolPrevFinished_checkCreateAccountForm = true;
						$('#sign-in_disable_form').hide();
					}
					else {
                        function isURL(url) {
                           return url.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g) !== null;
                        }
                        
                        if ( isURL( $( '#createaccount_surname' ).val().trim() ) )
                        {
                            addError('createaccount_surname', 'createaccount_error_msg', 'Nederīgs vārds!');
                            
                            bolPrevFinished_checkCreateAccountForm = true;
                            $('#sign-in_disable_form').hide();
                            return;
                        }
                        else 
                        {
                            removeError( 'createaccount_surname' );
                        }
                        
                        if ( isURL( $( '#createaccount_name' ).val().trim() ) )
                        {
                            addError('createaccount_name', 'createaccount_error_msg', 'Nederīgs vārds!');
                            
                            bolPrevFinished_checkCreateAccountForm = true;
                            $('#sign-in_disable_form').hide();
                            return;
                        }
                        else
                        {
                            removeError( 'createaccount_name' );
                        }
					    
						removeError('createaccount_surname');

						if (!validateEmail($('#createaccount_email').val())) {

							addError('createaccount_email', 'createaccount_error_msg', 'Ievadiet derīgu e-pastu!');

							bolPrevFinished_checkCreateAccountForm = true;
							$('#sign-in_disable_form').hide();
						}
						else {
				            new EmailValidator( $('#createaccount_email').val(), true)
                                .setOnValidCB(function(){
                                    $.ajax({
                                    type: "POST",
                                    dataType: "json",
                                    url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
                                    data: {
                                        'check_email' : true ,
                                        'email' : $('#createaccount_email').val()
                                    },
                                    success: function(data) {
                                        if (data['status'] != 'ok') {
                                            var strError = "\u0160\u012b e-pasta adrese jau ir re\u0123istr\u0113ta!";
                                            strError += "<br/><a href='' onclick='showForgotPassword(); return false'>" + 'Aizmirsi paroli' + "</a>";

                                            addHTMLError('createaccount_email', 'createaccount_error_msg', strError );

                                            bolPrevFinished_checkCreateAccountForm = true;
                                            $('#sign-in_disable_form').hide();
                                        }
                                        else {

                                            removeError('createaccount_email');

                                            if ($('#createaccount_username').val().trim().length < 4 ) {

                                                addError('createaccount_username', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu lietotājvārdu! Tam jābut vismaz 4 simbolus garam.');

                                                bolPrevFinished_checkCreateAccountForm = true;
                                                $('#sign-in_disable_form').hide();
                                            }
                                            else {

                                                if (!validateUsername($('#createaccount_username').val().trim())) {

                                                    addError('createaccount_username', 'createaccount_error_msg', 'Var saturēt tikai "a-z", "A-Z", "0-9" un "_.@-"');

                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                    $('#sign-in_disable_form').hide();
                                                }
                                                else
                                                {
                                                    $.ajax({
                                                        type: "POST",
                                                        dataType: "json",
                                                        url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
                                                        data: {
                                                            'check_username' : true ,
                                                            'username' : $('#createaccount_username').val()
                                                        },
                                                        success: function(data) {
                                                            if (data['status'] != 'ok') {

                                                                addError('createaccount_username', 'createaccount_error_msg', 'Šis lietotājvārds jau ir reģistrēts! Lūdzu ievadiet citu!');

                                                                bolPrevFinished_checkCreateAccountForm = true;
                                                                $('#sign-in_disable_form').hide();
                                                            }
                                                            else {

                                                                removeError('createaccount_username');

                                                                if ($('#createaccount_password').val().trim().length < 4 ) {

                                                                    addError('createaccount_password', 'createaccount_error_msg', 'Lūdzu ievadiet derīgu paroli! Tai jābūt vismaz 4 simbolus garai.');

                                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                                    $('#sign-in_disable_form').hide();
                                                                }
                                                                else
                                                                {
                                                                    removeError('createaccount_password');
    
                                                                    var bolCaptchaOk = true;
                                                                    if ( bolSignupCaptchaRequired )
                                                                    {
                                                                        bolCaptchaOk = false;
                                                                        
                                                                        if ( jqCaptchaResultInput.length && jqCaptchaResultInput.val().length )
                                                                        {
                                                                            bolCaptchaOk = true;
                                                                            removeError( strSignupCaptchaContainerID );
                                                                        }
                                                                        else
                                                                        {
                                                                            if ( ! jqCaptchaResultInput.length )
                                                                            {
                                                                                addError( strSignupCaptchaContainerID, "createaccount_error_msg", "Notikusi kļūda! Lūdzu pārbaudiet savu interneta savienujumu un mēģiniet vēlāk. Ja problēma neatrisinās, lūdzu sazinieties ar [email protected]" );
                                                                            }
                                                                            else
                                                                            {
                                                                                addError( strSignupCaptchaContainerID, 'createaccount_error_msg', 'Lūdzu aizpildi Captcha!' );
                                                                            }
                                                                        }
                                                                    }
                                                                    
                                                                    if ( ! bolCaptchaOk )
                                                                    {
                                                                        bolPrevFinished_checkCreateAccountForm = true;
                                                                        $( '#sign-in_disable_form' ).hide();
                                                                    }
                                                                    else
                                                                    {
                                                                        removeError( 'createaccount_password' );
                                                                        removeError( strSignupCaptchaContainerID );
        
                                                                        removeAllErrors( 'createaccount_error_msg' );
        
        
                                                                        if ( bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false )
                                                                        {
            
                                                                            strActiveForm = 'createaccount';
                                                                            showAddCookieUploads();
            
                                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                                            $( '#sign-in_disable_form' ).hide();
                                                                        }
                                                                        else
                                                                        {
                                                                            var postData = {
                                                                                'create_account': true,
                                                                                'username': $( '#createaccount_username' ).val(),
                                                                                'email': $( '#createaccount_email' ).val(),
                                                                                'password': $( '#createaccount_password' ).val(),
                                                                                'add_cookie_uploads': bolAddCookieUploads,
                                                                                'first_name': $( '#createaccount_name' ).val(),
                                                                                'surname': $( '#createaccount_surname' ).val(),
                                                                                'create_business_account': bolCreateBusinessAccount,
                                                                                'company_name': $( '#createaccount_company_name' ).val(),
                                                                                'company_phone': $( '#createaccount_company_phone' ).val(),
                                                                                'company_country': $( '#createaccount_company_country' ).val(),
                                                                                'from_ico': $( "#register_from_ico" ).val() ,
                                                                                'recaptcha_response': (jqCaptchaResultInput.length ? jqCaptchaResultInput.val() : '')
                                                                            };

                                                                            // add referral fields if the container is visible
                                                                            if ( $( "#createaccount-referral-container" ).css( "display" ) !== "none" )
                                                                            {
                                                                                postData[ 'inviter_hash' ] = $( "#createaccount-referral-hash" ).val();
                                                                                postData[ 'inviter_user' ] = $( "#createaccount-referral-user" ).val();
                                                                            }
                                                                            
                                                                            if ( $( "#register_coupon_code" ).css( "display" ) !== "none" )
                                                                            {
                                                                                postData.coupon_code = $( "#register_coupon_code_input" ).val().trim();
                                                                            }

                                                                                                                                                        
                                                                            var bolDontRedirectAfterLogin = true;
                                                                            
                                                                            if ( $( '.dont_redirect_after_login' ).val() == '' )
                                                                            {
                                                                            	bolDontRedirectAfterLogin = false;
                                                                            }
                                                                            
                                                                            var strCustomLoginReturnUrl = $( '.login_return_url' ).val();

                                                                            
                                                                            if ( ! bolDontRedirectAfterLogin && strCustomLoginReturnUrl == '' )
                                                                            {
                                                                            	postData.show_onboarding_survey = true;
                                                                            }
                                                                            else 
                                                                            {
                                                                            	postData.show_onboarding_survey = false;
                                                                            }
                                                                            
            
                                                                            $.ajax( {
                                                                                type: "POST",
                                                                                dataType: "json",
                                                                                url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
                                                                                data: postData,
                                                                                success: function ( data )
                                                                                {
                                                                                    if ( data[ 'status' ] == 'ok' )
                                                                                    {
                        																                        																
                                                                                        if ( ! bolDontRedirectAfterLogin )
                                                                                        {
                                                                                            if ( data[ 'custom_login_return_url' ] != 'undefined' )
                                                                                            {
                                                                                                strCustomLoginReturnUrl = data[ 'custom_login_return_url' ];
                                                                                            }

                                                                                            if ( strCustomLoginReturnUrl != '' )
                                                                                            {

                                                                                                if (
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'filebrowser' ) == -1 &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( window.location.pathname ) != -1 &&
                                                                                                    strCustomLoginReturnUrl != 'sync-share?create_cloud_files_user' &&
                                                                                                    strCustomLoginReturnUrl != 'library-info?after_login' &&
                                                                                                    strCustomLoginReturnUrl != 'video?after-signup' &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'lifetime-storage' ) == -1 &&
                                                                                                    ( "/" + strCustomLoginReturnUrl ).search( 'save-youtube-video' ) == -1
                                                                                                )
                                                                                                {
                                                                                                    if ( location.hash == '#sign_up' )
                                                                                                    {
                                                                                                        location.hash = '';
                                                                                                    }
                                    
                                                                                                    if ( strCustomLoginReturnUrl == 'storage-plans#subscribe' )
                                                                                                    {
                                                                                                        location.hash = 'subscribe';
                                                                                                    }
                                    
                                                                                                    location.reload();
                                                                                                }
                                                                                                else
                                                                                                {
                                                                                                    window.location = "https://failiem.lv/" + strCustomLoginReturnUrl;
                                                                                                }
                                
                                                                                            }
                                                                                            else
                                                                                            {
                                
                                                                                                window.location = "/account";
                                                                                            }
                                                                                        }
                                                                                        else
                                                                                        {
        
                                                                                            showCreateAccountSuccessMessage();
                            
                                                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                                                            $( '#sign-in_disable_form' ).hide();
                                                                                        }
                                                                                    }
                                                                                    else
                                                                                    {
                        
                                                                                        addError( 'createaccount_error_msg', 'createaccount_error_msg', 'Notika kļūda, sazinieties ar Failiem.lv komandu!' );
                        
                                                                                        bolPrevFinished_checkCreateAccountForm = true;
                                                                                        $( '#sign-in_disable_form' ).hide();
                                                                                    }
                                                                                },
                                                                                error: function ( data )
                                                                                {
                    
                                                                                    addError( 'createaccount_error_msg', 'createaccount_error_msg', 'Notika kļūda. Lūdzu, mēģiniet vēlreiz vai sazinieties ar [email protected]!' );
                    
                                                                                    bolPrevFinished_checkCreateAccountForm = true;
                                                                                    $( '#sign-in_disable_form' ).hide();
                                                                                }
                                                                            } );
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        } ,
                                                        error: function(data) {

                                                            addError('createaccount_error_msg', 'createaccount_error_msg', 'Notika kļūda. Lūdzu, mēģiniet vēlreiz vai sazinieties ar [email protected]!');

                                                            bolPrevFinished_checkCreateAccountForm = true;
                                                            $('#sign-in_disable_form').hide();
                                                        }
                                                    });
                                                }
                                            }
                                        }
                                    } ,
                                    error: function(data) {

                                        addError('createaccount_error_msg', 'createaccount_error_msg', 'Notika kļūda. Lūdzu, mēģiniet vēlreiz vai sazinieties ar [email protected]!');

                                        bolPrevFinished_checkCreateAccountForm = true;
                                        $('#sign-in_disable_form').hide();
                                    }
                                })
                                }).setOnInvalidCB(function() {
                                    bolPrevFinished_checkCreateAccountForm = true;
                                    $('#sign-in_disable_form').hide();
                                    addError('createaccount_email', 'createaccount_error_msg', 'Ievadiet derīgu e-pastu!');
                                }).setModalID("sign-in").run();
						}
					}
				}
			}
			else
			{
				bolPrevFinished_checkCreateAccountForm = true;
				$('#sign-in_disable_form').hide();
			}
		}
	}

	function getSigninReturnRedirectUrl()
    {
        if ($('.login_return_url').val() != '') {

            if ($('.dont_redirect_after_login').val() == '') {
                if (
                    ("/"+$('.login_return_url').val()).search(window.location.pathname) != -1 &&
                    $('.login_return_url').val() != 'sync-share?create_cloud_files_user' && 
                    $('.login_return_url').val() == 'storage-plans#subscribe' 
                )
                {
                    return '#subscribe';
                }
                else if ($('.login_return_url').val() == 'my-profile' )
                {
                    return $( '#l_user' ).val();
                }
                else {
                    return $('.login_return_url').val();
                }
            }
        }

        
	    return false;
    }
     
    function verifyCouponCode( strCouponInputID, strErrorID, fnCallback, bolResult )
    {
    	if ( bolResult === undefined )
		{
    		bolResult = null;
		}

        var strCouponInputSelector = "#" + strCouponInputID;
        
        var onError = function ()
        {
            addError( strCouponInputID, strErrorID, 'Nederīgs kupona kods!' );
            
            bolPrevFinished_checkCreateAccountForm = true;
            $( '#sign-in_disable_form' ).hide();
        };
        
        if ( bolResult === false )
        {
            onError();
            return false
        }
        else if ( bolResult === true )
        {
            return true;
        }
        
        if ( $( strCouponInputSelector ).css( "display" ) !== "none" )
        {
            // coupon field is visible -> so it must be filled
            if ( $( strCouponInputSelector ).val().trim().length === 0 )
            {
                onError();
                return false
            }
            else
            {
                if ( !bolResult )
                {
                    removeError( strCouponInputID );
                    
                    $.ajax( {
                        type: "POST",
                        dataType: "json",
                        url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
                        global: false,
                        data: {
                            'check_coupon': true,
                            'coupon_code': $( strCouponInputSelector ).val().trim()
                        },
                        success: function ( data )
                        {
                            fnCallback( typeof data[ 'status' ] !== "undefined" && data[ 'status' ] === 'ok' );
                        },
                        error: function ( )
                        {
                            fnCallback( false );
                        }
                    } );
                    return false;
                }
                else
                {
                    return true;
                }
            }
        }
        else
        {
            return true;
        }
    }

	var bolPrevFinished_checkSignInForm = true;

    function trySignIn( strTwoFactorAuthCode )
    {
        if ( typeof strTwoFactorAuthCode === "undefined" )
        {
            strTwoFactorAuthCode = "";
        }

        var jqCaptchaResultInput = $( '#' + strSinginCaptchaContainerID + ' .captcha_response' );

        removeAllErrors( 'signin_error_msg' );
       
        var strReturnUrl = getSigninReturnRedirectUrl();

        var objPostData = {
            'signin': true,
            'username': $( '#l_user' ).val(),
            'password': $( '#l_pass' ).val(),
            'remember_me': $( '#remember_me' ).prop( 'checked' ),
            'from_ico': $( '#register_from_ico' ).val(),
            'add_cookie_uploads': bolAddCookieUploads,
            'recaptcha_response': ( jqCaptchaResultInput.length ? jqCaptchaResultInput.val() : '' )
        };

        if ( strTwoFactorAuthCode )
        {
            objPostData[ 'two_factor_auth_code' ] = strTwoFactorAuthCode;
        }

        if ( strReturnUrl )
        {
            objPostData[ 'override_return_url' ] = strReturnUrl;
        }

        if ( $( "#l_coupon_code" ).css( "display" ) !== "none" )
        {
            objPostData.coupon_code = $( "#l_coupon_code" ).val().trim();
        }

        
        $.ajax( {
            type: "POST",
            dataType: "json",
            url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
            crossDomain: true,
            data: objPostData,
            success: function ( data )
            {
                var strAdditionalMessage = "";
                
                if ( typeof data[ 'login_attempts_left' ] !== 'undefined' )
                {
                    var strPartOne = +data[ 'login_attempts_left' ] === 1 ? ' Jums atlicis ' : ' Jums atlikuši ';
                    var strPartTwo = +data[ 'login_attempts_left' ] === 1 ? ' pieslēgšanās mēģinājums līdz jūsu konts tiks bloķēts.' : ' pieslēgšanās mēģinājumi līdz jūsu konts tiks bloķēts.';

                    strAdditionalMessage = strPartOne + data[ 'login_attempts_left' ] + strPartTwo;
                }
                
                if ( ( data[ 'status' ] === 'ok' || data[ 'status' ] === 'missing_account_data' ) && typeof data[ 'redirect_to' ] !== 'undefined' )
                {
                    
                    if ( data[ 'redirect_to' ].substring( 0, 17 ) == '/lifetime-storage' )
                    {
                        data[ 'redirect_to' ] += '?after_login';
                    }

                    if ( data[ 'redirect_to' ].substring( 0, 6 ) == '/token' )
                    {
                        data[ 'redirect_to' ] = '/token';
                    }

                    window.location = data[ 'redirect_to' ];
                }
                else if ( data[ 'status' ] === 'invalid_auth_code' )
                {
                    $( '#twofactor_error_msg' ).text( 'Ievadītais kods nav derīgs! Lūdzu mēģiniet vēlreiz!' + strAdditionalMessage ).show();
                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                }
                else
                {
                    var $errorCont;
                    if( strTwoFactorAuthCode )
                    {
                        $errorCont = $( '#twofactor_error_msg' );
                    }
                    else
                    {
                        $errorCont = $( '#signin_error_msg' );
                    }
                    
                    if ( typeof data[ "message" ] === "undefined" )
                    {
                       $errorCont.text( 'Nepareizs lietotājvārds vai parole! Pieeju var atjaunot uz jūsu epasta adresi.' + strAdditionalMessage );
                       console.log( 'SIGNIN ERROR CODE : 1' );
                    }
                    else
                    {
                        $errorCont.text( data[ "message" ] + strAdditionalMessage );
                    }
                    $errorCont.show();

                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                }
            },
            error: function ( data )
            {

                $( '#signin_error_msg' ).text( 'Notika kļūda. Lūdzu, mēģiniet vēlreiz vai sazinieties ar [email protected]!' );
                $( '#signin_error_msg' ).show();

                bolPrevFinished_checkSignInForm = true;
                $( '#sign-in_disable_form' ).hide();
            }
        } );
    }

    function show2FAPrompt()
    {
        $( '#createaccount-modal-content' ).hide();
        $( '#forgotpassword-modal-content' ).hide();
        $( '#addcookieuploads-modal-content' ).hide();
        $( '#createaccountsuccessmessage-modal-content' ).hide();
        $( '#signin-modal-content' ).hide();

        $( '#twofactor_authcode-modal-content' ).show();
    }
    
	function checkSignInForm(bolCouponCheckResult) {

		if ( bolCouponCheckResult === undefined )
		{
			bolCouponCheckResult = null;
		}
        
        var jqCaptchaResultInput = $('#' + strSinginCaptchaContainerID + ' .captcha_response');
        
		if (bolPrevFinished_checkSignInForm) {

			bolPrevFinished_checkSignInForm = false;
            $('#sign-in_disable_form').show();
            
            if ( $( "#l_coupon_code" ).css("display") !== "none" )
            {
                if ( bolCouponCheckResult )
                {
                    $( "#signin_error_msg" ).hide();
                }
                else if ( bolCouponCheckResult === null )
                {
                    bolPrevFinished_checkSignInForm = true;
                    return verifyCouponCode( "l_coupon_code", "signin_error_msg", checkSignInForm, bolCouponCheckResult );
                }
                else
                {
                    $( "#signin_error_msg" )
                        .text( "Ievadītais kupona kods nav derīgs, vai ir jau izmantots!" )
                        .show();
                    bolPrevFinished_checkSignInForm = true;
                    $( '#sign-in_disable_form' ).hide();
                    return false;
                }
            }
                
			bolError = false;

			if ($('#l_user').val() == '' ) {

				$('#l_user').addClass( 'has_error' );
				bolError = true;
			}
			else {
				$('#l_user').removeClass( 'has_error' );
			}

			if ($('#l_pass').val() == '' ) {
				$('#l_pass').addClass( 'has_error' );
				bolError = true;
			}
			else {
				$('#l_pass').removeClass( 'has_error' );
			}
            
            
            if ( bolSigninCaptchaRequired )
            {
                if ( jqCaptchaResultInput.length === 0 )
                {
                    bolError = true;
    
                    addError(strSinginCaptchaContainerID, "signin_error_msg", "Notikusi kļūda! Lūdzu pārbaudiet savu interneta savienujumu un mēģiniet vēlāk. Ja problēma neatrisinās, lūdzu sazinieties ar [email protected]");
                }
                else if ( jqCaptchaResultInput.val().length === 0 )
                {
                    bolError = true;
    
                    addError(strSinginCaptchaContainerID, "signin_error_msg", "Lūdzu aizpildiet Captcha lauku!");
                }
                else
                {
                    removeError( strSinginCaptchaContainerID );
                }
            }

			if (!bolError) {

				$.ajax({
					type: "POST",
					dataType: "json",
					url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
                    crossDomain: true,
                    data: {
						'check_signin' : true ,
						'username' : $('#l_user').val() ,
						'password' : $('#l_pass').val()
					},
					success: function(data) {
                        if ( data[ 'status' ] === 'ok' )
                        {
                            if ( bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false && data[ 'show_add_cookie_uploads' ] == true )
                            {
                                strActiveForm = 'signin';
                                showAddCookieUploads();

                                bolPrevFinished_checkSignInForm = true;
                                $( '#sign-in_disable_form' ).hide();
                            }
                            else
                            {
                                trySignIn();
                            }
                        }
                        else if ( data[ 'status' ] === 'requires_auth_code' )
                        {
                            $( '#sign-in_disable_form' ).hide();
                            bolPrevFinished_checkSignInForm = true;
                            
                            show2FAPrompt();
                        }
                        else
                        {
                            var strMessage = 'Nepareizs lietotājvārds vai parole! Pieeju var atjaunot uz jūsu epasta adresi.';

                            if ( typeof data[ 'message' ] !== "undefined" )
                            {
                                strMessage = data[ 'message' ];
                            } 
                            else if ( typeof data[ 'login_attempts_left' ] !== 'undefined' ) 
                            {
                                var strPartOne = +data['login_attempts_left'] === 1 ? ' Jums atlicis ' : ' Jums atlikuši ';
                                var strPartTwo = +data['login_attempts_left'] === 1 ? ' pieslēgšanās mēģinājums līdz jūsu konts tiks bloķēts.' : ' pieslēgšanās mēģinājumi līdz jūsu konts tiks bloķēts.';
                                
                                strMessage += strPartOne + data[ 'login_attempts_left' ]  + strPartTwo;
                            }
                            else
                            {
                                console.log( 'SIGNIN ERROR CODE : 2' );
                            }

                            $( '#signin_error_msg' ).text( strMessage );
							$('#signin_error_msg').show();

							bolPrevFinished_checkSignInForm = true;
							$('#sign-in_disable_form').hide();
						}
					} ,
					error: function(data) {

						$('#signin_error_msg').text('Notika kļūda. Lūdzu, mēģiniet vēlreiz vai sazinieties ar [email protected]!');
						$('#signin_error_msg').show();

						bolPrevFinished_checkSignInForm = true;
						$('#sign-in_disable_form').hide();
					}
				});
			}
			else {

				bolPrevFinished_checkSignInForm = true;
				$('#sign-in_disable_form').hide();
			}
		}
	}


	function checkForgotPasswordForm() {

		if (!validateEmail($('#forgotpassword_email').val())) {

			addError('forgotpassword_email', 'forgotpassword_error_msg', 'Ievadiet derīgu e-pastu!');
		}
		else {

			removeError('forgotpassword_email');

			$.ajax({
				type: "POST",
				dataType: "json",
				url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
				data: {
					'recover_password' : true ,
					'email' : $('#forgotpassword_email').val()
				},
				success: function(data) {
					if (data['status'] == 'ok') {

						removeAllErrors('forgotpassword_error_msg');

						$('#forgotpassword_error_msg').addClass('ok_msg_active');
						$('#forgotpassword_error_msg').text('Ja konts ar šādu e-pastu eksistē, tad paroles atjaunošanas saite tika nosūtīta uz norādīto e-pastu.');
						$('#forgotpassword_error_msg').show();
					}
					else {

						addError('forgotpassword_email', 'forgotpassword_error_msg', 'Šāds e-pasts nav reģistrēts.');
					}
				}
			});
		}
	}

	function checkSocialLogin(strType) {
	
		if ( strType == 'facebook' )
		{
			fError( 'Facebook ir kaut ko mainījis, tāpēc diemžēl šobrīd pieteikšanās ar Facebook nav pieejama. Lai tiktu iekšā, atjauno paroli uz savu epastu (ar kuru esi lietojis Facebook) <a href="/?a#forgot_password">spiežot šeit</a>. Turpmāk iesakam izmantot savu e-pastu vai Google kontu, lai nebūtu atkarīgi no Facebook. Mēs plānojam atslēgt šo metodi.' );
			return;
		}

		if (bolHasCookieUploads == true && bolAddCookieUploadsAnswered == false) {

			strActiveForm = strType;
			showAddCookieUploads();
		}
		else {

			if ($('.dont_redirect_after_login').val() == 'true')
			{
				$('#sendfiles').submit();
				$('.add_anonym_uplaods').val('true');
			}

			if (strType == 'facebook') {

				$('#login_facebook').submit();
			}
			else if (strType == 'google') {

				$('#login_google').submit();
			}
			else if (strType == 'draugiem') {

				$('#login_draugiem').submit();
			}
			else if (strType == 'microsoft') {

				$('#login_microsoft').submit();
			}

		}
	}


	function validateEmail(email) {
		var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
		var result = re.test(email);
		return result;
	}

	function validateUsername(username) {

		var re = /^[a-zA-Z0-9_\.@\-]+$/;
		var result = re.test(username);
		return result;
	}
    
    function addHTMLError(strDomId, strErrorMsgId, strErrorMsgText) {
        $('#' + strDomId).addClass( 'has_error' );
        $('#' + strErrorMsgId).html(strErrorMsgText);
        $('#' + strErrorMsgId).show();
    }

	function addError(strDomId, strErrorMsgId, strErrorMsgText) {
		$('#' + strDomId).addClass( 'has_error' );
		$('#' + strErrorMsgId).text(strErrorMsgText);
		$('#' + strErrorMsgId).show();
	}

	function removeError(strInputId) {
		$('#' + strInputId).removeClass( 'has_error' );
	}

	function removeAllErrors(strErrorMsgId) {
		$('#' + strErrorMsgId).text('');
		$('#' + strErrorMsgId).hide();
	}

	var isUsernameChanged = false;
	function usernameChanged()
	{
		isUsernameChanged = true;
	}

	function createUsername(strEmail)
	{
		if( !isUsernameChanged && strEmail != '' && validateEmail(strEmail))
		{
			var arrEmail = strEmail.split("@");

			var strUsername = arrEmail[0];
			while (strUsername.length < 4)
			{
				strUsername += '1';
			}


			$.ajax(
			{
				type: "POST",
				dataType: "json",
				url: "./ajax/sign_in.php?PHPSESSID=47a7414cbec0c4cc7753873be845dea4bd0be3e8",
				data:
				{
					'get_username' : true ,
					'username' : strUsername
				},
				success: function(data)
				{
					if (data['status'] == 'ok' && data['username'])
					{
						$('#createaccount_username').val(data['username']);
					}
				}
			});
		}
	}

	var bolCreateBusinessAccount = false;
	function toggleCreateBusinessAccount()
	{
		if (bolCreateBusinessAccount)
		{
			bolCreateBusinessAccount = false;
			$('#create_business_account_container').hide();
		}
		else
		{
			bolCreateBusinessAccount = true;
			$('#create_business_account_container').show();
		}
	}


    
    </script>


	<div id="content">


<script>
	
	var objTranslationsIndex = {
    	'RESEND-ACTIVATE-USER-TEXT' : 'Konta aktivizēšanas saite vairs nav derīga. Lai aktivizētu kontu, pieprasiet jaunu profila aktivizēšanas saiti.' ,
    	'RESEND-ACTIVATE-USER-HEADER' : 'Aktivizēšanas saite vairs nav derīga!' ,
    	'RESEND-ACTIVATE-USER-ACCEPT' : 'Pieprasīt jaunu aktivizēšanas saiti' ,
    	'RESEND-ACTIVATE-USER-DECLINE' : 'Atcelt' ,
        'LIST-ALERT-EmailIsSent' : 'Epasts ir nosūtīts!' ,
        'COMPANY-USERS-SomethingWentWrong' : 'Neizdevās! Mēģini vēlreiz.' ,
		'INDEX-UploadFileHasVirus' : 'Fails ir inficēts un tika izdzēsts no servera!' ,
		'INDEX-UploadFileSizeLimitExceed' : 'Fails netika augšuplādēts, pārsniegts faila izmēra limits!' ,
		'INDEX-UploadSizeLimitExceed' : 'Fails netika augšupielādēts, jo ir pārsniegts augšupielādes izmēra limits!' ,
		'INDEX-UploadFileSizeError' : 'augšuplādējot notikusi kļūda, šo failu nepieciešams augšuplādēt atkārtoti!' ,
		'INDEX-Alert-FileHasDoubleExtensions' : 'Faila nosaukumā ir dubults failu paplašinājums. Lūdzu, pārsauciet failu un veiciet atkārtotu augšupielādi!' ,
		'INDEX-UploadQueueTooLarge' : 'Ir pārsniegts šī konta veida maksimālais augšuplādes izmērs. Lūdzu, abonējiet PRO vai Biznesa kontu šeit: <a href=’/storage-plans’ target=’_blank’>https://failiem.lv/storage-plans</a>' ,
        'INDEX-FileUploadFinishTime' : 'pabeigts pēc [time_left]' ,
        'INDEX-FileUploadWaitingOnConnection' : 'Gaidu uz tīkla savienojumu. Ieslēdziet WIFI. [seconds_left]' ,
        'INDEX-FileUploadRestarting' : 'Pārstartēju šo failu. Turiet pārlūku atvērtu' ,
        'INDEX-FileUploadComplete' : 'Pabeigts' ,
        'INDEX-FileMove' : 'Apstrādā' ,
        'INDEX-FileCanceled' : 'Atcelts' ,
        'INDEX-FileAntivirus' : 'Antivīrusa pārbaude' ,
        'INDEX-FileSizeExceeded' : 'Fails ir par lielu' ,
        'INDEX-AddMoreFiles' : 'Pievienot vēl failus' ,
        'INDEX-UPLOAD-FileSizeText' : 'Faili {NUMFILES}, izmērs {SIZE}' ,
        'INDEX-Alert-FileCountLimitExceeded-One' : 'Ir atļauts augšupielādēt tikai vienu failu! Lūdzu noņemiet liekos failus!' ,
        'INDEX-UPLOAD-TimeDuration-Around' : 'ap' ,
        'INDEX-UPLOAD-UploadedFiles-From' : 'no' ,
        'INDEX-EdgeBrowser-FileTooLarge' : 'Microsoft Edge pārlūks neatbalsta lielu failu augšupielādi, lūdzu izmantojiet citu pārlūku!' ,
        'INDEX-Alert-FileHasDoubleExtensions' : 'Faila nosaukumā ir dubults failu paplašinājums. Lūdzu, pārsauciet failu un veiciet atkārtotu augšupielādi!' ,
        'INDEX-WindowCloseConfirm' : 'Notiek failu augšuplāde, vai vēlaties to pārtraukt?' ,
        'INDEX-EnterEmail-Button' : 'Ievadīt e-pastu' ,
        'GENERAL-SKIP' : 'Izlaist' ,
        'INDEX-PleaseFillThisField' : 'Lūdzu aizpildiet šo lauku' ,
        'INDEX-EnterYourEmailToReceive-Desc' : 'Lūdzu ievadi savu e-pastu, lai saņemtu admin saiti, ar kuru var arī pievienot vai <b>izdzēst</b> failus. Tu un saņēmēji saņems atgādinājumu par failu dzēšanas termiņa beigām' ,
        'EMAILS-WERE-SENT-TO' : 'E-pasti ir nosūtīti uz' ,
        'EMAILS-NOT-SENT' : 'E-pastus neizdevās nosūtīt!' ,
        'EMAILS-WERE-NOT-SENT-TO' : 'E-pasti nav nosūtīti uz' ,
        'EMAIL-SENDING-UNSUBSCRIBED-DESCRIPTION' : 'Visus e-pastus neizdevās nosūtīt, jo adrešu īpašnieki ir atteikušies no Failiem.lv koplietošanas e-pastu saņemšanas. Lai koplietotu failus uz šīm adresēm, lūdzu, informējiet to īpašniekus, lai nomaina atteikšanās uzstādījumus savā kontā.' ,
        'INDEX-AftferUploadError' : 'Augšupielādes saglabāšanas laikā notika kļūda. Lūdzu, sazinieties ar [email protected]!' ,
        'INDEX-EnterYourEmail' : 'Ievadi e-pastu, uz kuru saņemsi rediģēšanas un dzēšanas saiti' ,
        'INDEX-EnterMoreEmails' : 'Ievadi e-pastus, kam nosūtīt piekļuves saiti un atgādinājumu par failu termiņu' ,
        'INDEX-EmailMaybeIncorrectSuggest' : 'Vai Jūs domājāt:' ,
        'INDEX-EmailMaybeIncorrectNoMxSuggest' : 'Iespējams, šīs adreses nav pareizas:' ,
        'INDEX-EmailMaybeIncorrect' : 'Lūdzu pārbaudiet ievadīto e-pastu pareizību! Ja visi ievadītie e-pasti ir pareizi, vēlreiz nospiediet ’Saglabāt un nosūtīt adresi’.' ,
        'INDEX-EmailIncorrectOrMissing' : 'Kāds no e-pastiem ir ievadīts kļūdaini vai neeksistē. Ievadi savu e-pastu pirmajā laukā. Vienā reizē var nosūtīt līdz 200 e-pastiem. Vairākus e-pastus atdali ar komatu.' ,
        'INDEX-ReceiveFiles-Popup-Desc' : 'Nospiežot pogu “Saņemt failus”, tu izveidosi jaunu mapi, kur citi var pievienot failus. Mapes saiti vari nosūtīt citiem cilvēkiem, no kuriem vēlies saņemt vai apkopot saturu. Ikviens saites atvērējs šajā mapē var augšupielādēt failus, bet nevar tos dzēst. </br></br>Jauno mapi ar saņemtajiem failiem atradīsi sadaļā “Mani faili”.' ,
        'INDEX-ReceiveFiles-Popup-Header' : 'Kas ir Failu saņemšana?' ,
        'GENERAL-CONTINUE' : 'Turpināt' ,
        'GENERAL-ABORT' : 'Atcelt' ,
        'INDEX-CreateAccount-InfoText' : 'Lai glabātu failus pastāvīgi, izveido vai ienāc ar lietotāja kontu. Faili tiks piesaistīti šim kontam. Būs ērtāk.' ,
        'INDEX-EnterYourEmail' : 'Ievadi e-pastu, uz kuru saņemsi rediģēšanas un dzēšanas saiti' ,
        'INDEX-RegisterToSetPassword' : 'Šī iespēja ir pieejama, ja Tev ir konts. Lai mainītu failu piekļuves uzstādījumus, izveido vai ienāc savā kontā un tad nomaini mapes uzstādījumus.' ,
        'INDEX-RegisterBuyToSetPassword' : 'Šī iespēja ir pieejama PRO un Biznesa kontu abonentiem. Lai mainītu failu piekļuves uzstādījumus, izveido vai ieej savā kontā, veic PRO vai Biznesa konta abonēšanu un nomaini mapes uzstādījumus.' ,
        'INDEX-PleaseFillThisField' : 'Lūdzu aizpildiet šo lauku' ,
        'INDEX-RegisterToSetPassword' : 'Šī iespēja ir pieejama, ja Tev ir konts. Lai mainītu failu piekļuves uzstādījumus, izveido vai ienāc savā kontā un tad nomaini mapes uzstādījumus.' ,
        'INDEX-RegisterBuyToSetPassword' : 'Šī iespēja ir pieejama PRO un Biznesa kontu abonentiem. Lai mainītu failu piekļuves uzstādījumus, izveido vai ieej savā kontā, veic PRO vai Biznesa konta abonēšanu un nomaini mapes uzstādījumus.' ,
        'PROFILE-AccountDeleted' : 'Jūsu lietotāja konts ir izdzēsts.' ,
        'PROFILE-CHECK-ACTIVATE-Error' : 'Notika kļūda aktivizējot Tavu kontu. Lūdzu, mēģini vēlreiz vai sazinies ar [email protected]' ,
        'PROFILE-CHECK-ACTIVATE-User-Deleted' : 'Profils, kuru mēģināji aktivizēt ir dzēsts!' ,
        'EMAIL-NOTIFICATION-DISABLE_SUCCESS' : 'Veiksmīgi atslēdzām e-pastu sūtīšanu.' ,
        'EMAIL-NOTIFICATION-DISABLE_FAIL' : 'Neizdevās atslēgt e-pastu sūtīšanu. Iespējams, ka saite kurai sekoji ir nederīga. Lūdzu mēģini vēlreiz.' ,
        'SMS-NOTIFICATION-DISABLE_SUCCESS' : 'Veiksmīgi atslēdzām SMS sūtīšanu.' ,
        'SMS-NOTIFICATION-DISABLE_FAIL' : 'Neizdevās atslēgt SMS sūtīšanu. Iespējams, ka saite kurai sekoji ir nederīga. Lūdzu mēģini vēlreiz.' ,
	};
    
    var bolFotoDrukaUpload = false;
    var strServerHttpHost = 'failiem.lv';
    var intMyQueueSizeLimitMb = 20480;
    var intMyFileSizeLimitMb = 5120;
    var strUploadSaveServer = 'free.failiem.lv';
    var strServerHost = 'fv1-10.failiem.lv';
    var bolIsReplaceFileVersionUpload = false;
    var strReplaceFileVersionUpload_FileHash = '';
    var strReplaceFileVersionUpload_ReturnToAfter = '';
	var intSimUploadLimit = 2;
	var bolServerHttpHostIsFailiemLv = true;
	var PHPSESSID = '47a7414cbec0c4cc7753873be845dea4bd0be3e8';
	var bolIsFileUploadToExistingUpload = false;
	var strFileUploadToExistingUpload_UploadHash = '';
	var strFileUploadToExistingUpload_UploadAddFileKey = '';
	var bolBergaFotoUpload = false;
	var bolBergaFoto_FullSchoolUpload = false;
	var bolBergaFoto_AddToSchoolFolder = false;
	var strUploadButtonText = 'Uzkopēt failus';
	var bolSessionUser_IsEnterpriseOrg = false;
	var bolIsWordpressGalleryModule = false;
	var bolDontAskUploadInfo = false;
	var bolSessionUser_IsLoggedIn = false;
	var bolFotoProductsUpload = false;
	var bolPhotobookUpload = false;
	var bolEparakstsUpload = false;
	var intUserMaxPerUploadShareAtOnce = '200';
	var strSessionUser_Email = '';
	var bolReceiveLinkPopupShown = false;
	var bolSessionUser_IsStorageSubscriber = false;
	var arrExecutableFileExtensions = [ 'exe','com','dll','pif','scr','bat','bin','pl','sh','scf','sct','shs','vb','lnk','jnlp','apk','vbs','js','msi','jse','jar','dmg','bin','wsf' ];
	var arrFileExtensions = [ 'jpg','jpeg','gif','png','bmp','svg','webp','ico','jfif','heic','heif','tiff','tif','ac3','aac','aif','aiff','air','mp3','wav','flac','oga','aac','m4a','wma','opus','wpl','m3u','ac3','opus','wpl','m4a','avi','mpg','mpeg','rm','wmv','asf','mp4','mov','flv','3gp','divx','rmvb','ogg','mkv','ogv','webm','m4v','mts','lrf','odt','ods','odp','doc','docx','pdf','xls','xlsx','ppt','pptx','pps','ppsx','rtf','dwg','dxf','txt','php','js','html','css','xml','csv','ini','fb2','epub','edoc','asice','dotx','7z','bz','bz2','bzip','cab','cpio','gz','iso','lha','lz','lzh','lzma','rar','tar','taz','tbz','tbz2','tgz','tlz','txz','tz','xar','xz','z','zip','toast','vcd','exe','com','dll','pif','scr','bat','bin','pl','sh','scf','sct','shs','vb','lnk','jnlp','apk','vbs','js','msi','jse','jar','dmg','bin','wsf' ];
	var bolShowAlertSuccess_AccountDeleted = false;
	var bolShowUserResendConfirmationEmailError = false;
	var bolShowAlertError_ActivationUserDeleted = false;
	var bolShowAlertSuccess_MailTypeUnsubscribed = false;
	var bolShowAlertError_MailTypeUnsubscribedFail = false;
    var bolShowAlertSuccess_SMSTypeUnsubscribed = false;
    var bolShowAlertError_SMSTypeUnsubscribedFail = false;
	var bolShowUserResendConfirmationEmailPopup = false;
	var intShowUserResendConfirmationEmailPopup_UserId = 0;
	var bolShowGift_CreateAccount = false;

    var objOrganizationUserEmails = {
        };

    
            var strCarouselHtml = "<div>\n                            <h1 class=\"main_page_top_header_1 arrow\">\n                                \u0112rt\u0101kais veids, k\u0101 <span>glab\u0101t un dal\u012bties<\/span>\n                            <\/h1>\n\n                            <div class=\"file_types\">\n                                Foto\n                                <div class=\"file_types_seperator\">|<\/div>\n                                Video\n                                <div class=\"file_types_seperator\">|<\/div>\n                                Audio\n                                <div class=\"file_types_seperator\">|<\/div>\n                                Dokumentiem\n                            <\/div>\n                        <\/div>\n                        <h1 class=\"main_page_top_header_1\">\n                            \u0100tr\u0101kais veids, k\u0101 p\u0101rs\u016bt\u012bt <span>lielus failus<\/span>\n                        <\/h1>\n                        <h1 class=\"main_page_top_header_1\">\n                            Abon\u0113 <span>dro\u0161u<\/span> vietu un <span>liel\u0101ku<\/span> \u0101trumu\n                        <\/h1><a class=\"carousel-picture\" onclick=\"gaev( 'UploadAd', '12', '' );\" href=\"https:\/\/www.bilesuserviss.lv\/lat\/biletes\/muzika\/gada-augstakais-musdienu-muzikas-apbalvojums-gamma-444745\/?utm_source=failiemlv&utm_medium=banner&utm_campaign=failiem-lv-banner-nov-2024\" target=\"_blank\"><img src=\"https:\/\/failiem.lv\/thumb_show.php?i=xq5qj7whru\"\/><\/a><style>\n                @media only screen and (min-width: 772px) {\n                    #file_upload_title_wrap.flex #before_file_upload #main_page_top_header_1_carousel > *:not(.carousel-picture) {\n                        display: none;\n                    }\n                    #file_upload_title_wrap.flex #before_file_upload #main_page_top_header_1_carousel > *:nth-child(4) {\n                        position: unset;\n                        opacity: 1;\n                    }\n                    #file_upload_title_wrap.flex #before_file_upload #main_page_top_header_1_carousel > * {\n                        pointer-events: all;\n                        animation-name: unset;\n                        position: unset;\n                    } } <\/style><script>setTimeout(\n                    function() {\n                        carouselAdShownIncrement('12');\n                    }, 0);<\/script>";
    

            var objLibrary;

        $( function ()
        {
            objLibrary = new Library(
                {
                    type : '' ,
                    fee : '' ,
                } ,
                {
                    session_user_logged_in : false ,
                    session_user_username : '' ,
                    rand_seed : 127667770 ,
                } ,
                {
                    'LIBRARY_GENERIC_ERROR': 'Neizdevās!',
                    'LIBRARY_LOAD-ERROR': 'Piedod, kaut kas nogāja greizi. Lūdzu, atkārtoti ielādējiet šo lapu.',
                    'LIBRARY_SEARCH-MIN-LENGTH': 'Ievadi vismaz 3 simbolus!',
                    'LIBRARY_SEARCH-PLACEHOLDER': 'meklēt failus pēc birkām, nosaukuma vai apraksta',
                    'LIBRARY_EMPTY-SEARCH-RESULTS': ' Neatradām nevienu failu!',
                    'LIBRARY_SEARCH-HINT': 'Mēģini meklēt vienu vārdu vai atslēdz sadaļu filtrus',
                    'LIBRARY_SEARCH-ERROR-DESC': 'Lūdzu, mēģini vēlāk!',
                    'PUBLIC-PROFILE-Views': 'Skatījumi',
                    'PUBLIC-PROFILE-Image': 'Bildes',
                    'PUBLIC-PROFILE-Video': 'Video',
                    'PUBLIC-PROFILE-Document': 'Dokumenti',
                    'PUBLIC-PROFILE-Audio': 'Audio',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Follow': 'Sekot',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Register': 'Reģistrēties',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Apply': 'Pieteikties',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unfollow': 'Nesekot',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unregister': 'Atreģistrēties',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Unapply': 'Atteikties',
                    'PUBLIC-PROFILE-FOLLOW-BUTTON-TEXT-Following': 'Sekoju',
                    'LIST-FILE-TOOLTIP-DOWNLOADED-COUNT': 'lejuplādes',
                    'LIST-FILE-TOOLTIP-VIEWED-COUNT': 'skatījumi',
                    'LIST-LINK-Update-Price': 'Pārdot',
                    'LIST-LINK-Buy': 'Pirkt',
                    'LIST-ITEM-FUNCTIONS-PriceFrom': 'no',
                    'UPLOAD-ACTION-LINE-CopyLink': 'Nosūtīt pieejas saiti',
                    'UPLOAD-ACTION-LINE-EmbedLink': 'Iegult saturu',
                    'GALLERY-FileReportCancelConfirm': 'Vai tiešām vēlaties atcelt ziņojumu par bīstama faila saturu?',
                    'GALLERY-CancelReport': 'Atsaukt ziņojumu par problēmu',
                    'GALLERY-Report': 'Ziņot par problēmu',
                    'GALLERY-FileReportConfirm': 'Vai tiešām vēlaties ziņot, ka šis fails satur bīstamu saturu?',
                    'LIST-LINK-DownloadFile': 'Lejupielādēt',
                    'LIST-LINK-ViewFile': 'Apskatīt',
                    'LIST-OrderPhotoText': 'Pasūtīt foto',
                    'LIST-LINK-PlayFile': 'Atskaņot',
                    'LIST-LINK-CommentFile': 'Komentēt',
                    'LIST-LINK-LikeFile': 'Patīk',
                    'LIST-LINK-UnlikeFile': 'Pārdomāju',
                    'PRINTING-ORDER-FORM-Crop-Label': 'Apgriezt baltās malas (kadrēt)',
                    'LIST-ITEM-Folders': 'mapes',
                    'LIST-ITEM-Files': 'faili',
                    'LIST-ITEM-ItemViewsTitle': 'skatījumi',
                    'LIST-ITEM-ItemCommentsTitle': 'komentāri',
                    'LIST-ITEM-ItemLikesTitle': 'patīk',
                    'LIST-LINK-DELETE-FILE': 'Dzēst',
                    'LIST-CONFIRM-DELETE-FILE': 'Vai tiešām vēlaties dzēst šo failu?',
                    'LIST-LINK-DELETE-FILE-Yes': 'Jā, dzēst!',
                    'LIST-LINK-DELETE-FILE-No': 'Atcelt',
                    'LIST-FlDelPart1': 'Fails',
                    'LIST-FlDelPart2': 'ir <b>izdzēsts</b>!',
                    'List-UnableToDeleteFileReadOnly': 'Falu nevar izdzēst, jo tas ir koplietots!',
                    'List-UnableToDeleteLockedFile': 'Šo failu nav atļauts dzēst, jo tas ir nobloķēts.',
                    'LIST-UnableToDeleteFile': 'Notikusi kļūda, fails netika izdzēsts!',
                    'PROFILE-LOGED-UPL-ACTION-DELETE-UPLOAD': 'Dzēst mapi',
                    'PROFILE-LOGED-UPL-ACTION-DELETE-CONFIRM-TEXT': 'Vai tiešām vēlaties dzēst visus šīs mapes failus?',
                    'PROFILE-LOGED-UPL-ACTION-DELETE-DONE': 'Mape ir dzēsta!',
                    'PROFILE-DELETE_MULTIPLE_ERROR': 'Notikusi kļūda dzēšot vienu no mapēm!',
                    'UPLOAD-ACTION-LINE-CopyLink-Short': 'Koplietot',
                    'FILE-BROWSER-OpenTab': 'Atvērt jaunā cilnē',
                }
            );

            objLibrary.loadTopProfiles( 6 );
        } );
            
</script>

<link rel="stylesheet" type="text/css" media="all" href="/js/uploadify/uploadifive.css?v=1715343643"><link rel="stylesheet" type="text/css" media="all" href="/css/landing.css?v=1728644492">
                <script src="/js/client_detection.js?v=1715343642"></script>
                <script src="/js/uploadify/jquery.uploadifive.custom_folderupload.js?v=1731427438"></script>
                <script src="/js/index.js?v=1730215967"></script>
                <script src="/js/landing.js?v=1715343639"></script>
                <script src="/js/library/library.js?v=1726237286"></script>
<input type="hidden" id="upload_hash" value="">

<section id="landing-section" class=" ">
	
	<div class="container">
		
		<div class="content">
		
            <div id="file_upload_title_wrap" class=" flex">
                <!-- text, forms or logo before upload form  -->
                <div id="before_file_upload">

                                        
                        

                                                    <div id="main_page_top_header_1_carousel">
                                <div>
                            <h1 class="main_page_top_header_1 arrow">
                                Ērtākais veids, kā <span>glabāt un dalīties</span>
                            </h1>

                            <div class="file_types">
                                Foto
                                <div class="file_types_seperator">|</div>
                                Video
                                <div class="file_types_seperator">|</div>
                                Audio
                                <div class="file_types_seperator">|</div>
                                Dokumentiem
                            </div>
                        </div>
                        <h1 class="main_page_top_header_1">
                            Ātrākais veids, kā pārsūtīt <span>lielus failus</span>
                        </h1>
                        <h1 class="main_page_top_header_1">
                            Abonē <span>drošu</span> vietu un <span>lielāku</span> ātrumu
                        </h1>                            </div>
                                            
                </div>
                <!-- /text, forms or logo before upload form  -->

                                
                <!-- upload form -->
                <div id="upload-box-outer">
                    
                    <!-- upload form : text during file upload -->
                    <div class="upload_waiting top">
                        <div class="during_file_upload__title">
                            <img src="/images/landing/upload_cloud_red_comb.svg" alt="File upload">Augšupielādē...                        </div>

                        <div>Turi pārlūku atvērtu, kamēr faili uzkopējas</div>
                    </div>
                    
                    <div id="text_during_file_upload">
                        
                        <div id="during_file_upload">
                            
                                                        
                            <div id="download_link_wrapper_0">
                                <div id="download_link_0"></div>
                                <div class="copy_button_wrapper">
                                    <div id="copy_button_0" class="copy_button">
                                        <div class="copy_text">
                                            <div class="hover mobile">Kopēt</div>
                                            <div class="hover">Kopēt saiti</div>
                                            <div class="copied">Nokopēts!</div>
                                        </div>
                                    </div>
                                    <div class="copy_button_drawer">
                                        <div id="drawer_copy_button_0" class="checked">
                                            <span>Kopēt skatīšanās saiti</span>
                                            <span class="desc">Var apskatīt un lejuplādēt</span>
                                        </div>
                                        <div id="drawer_edit_button_0">
                                            <span>Kopēt rediģēšanas saiti</span>
                                            <span class="desc">Var pievienot, rediģēt saturu,  e-parakstīt un dzēst</span>
                                        </div>
                                        <div id="drawer_receive_button_0">
                                            <span>Kopēt pievienošanas saiti</span>
                                            <span class="desc">Var pievienot klāt failus, bet ne dzēst vai rediģēt esošos</span>
                                        </div>
                                    </div>
                                </div>
                                
                                                                
                            </div>
                            
                                                        
                        </div>
                        
                    </div>
                    <!-- /upload form : text during file upload -->
                    
                    <!-- upload form : text and form after file upload wordpress -->
                    <div id="after_file_upload_wodpress_gallery">
                        
                        <p id="after_file_upload_wodpress_gallery_text_1">Jūsu faili ir veiksmīgi augšupielādēti</p>
                        <br>
                        
                        <a href="javascript:void(0);" id="after_file_upload_wodpress_gallery_button" class="standard_button"><i class="fa fa-bolt" aria-hidden="true"></i>Ievietot šo galeriju saturā</a>
                        <br>
                        
                        <div id="wordpress_shortcode_wrapper">
                            <p id="wordpress_shortcode_title">Galerijas saīsnes kods:</p>
                            <input id="wordpress_shortcode">
                        </div>
                        
                    </div>
                    <!-- /upload form : text and form after file upload wordpress -->
                    
                    <!-- upload form : text and form after file upload -->
                    <div id="after_file_upload">
            
                        <div class="after_file_upload__title">
                            Gatavs! Nosūti saiti uz e-pastu:                        </div>
            
                        <form method="post" action="list.php" id="submit_form">
                        
                                                        <div id="download_link_wrapper">
                                <div id="download_link"></div>
                                <div class="copy_button_wrapper">
                                    <div id="copy_button" class="copy_button">
                                        <div class="copy_text">
                                            <div class="hover mobile">Kopēt</div>
                                            <div class="hover">Kopēt saiti</div>
                                            <div class="copied">Nokopēts!</div>
                                        </div>
                                    </div>
                                    <div class="copy_button_drawer">
                                        <div id="drawer_copy_button" class="checked">
                                            <span>Kopēt skatīšanās saiti</span>
                                            <span class="desc">Var apskatīt un lejuplādēt</span>
                                        </div>
                                        <div id="drawer_edit_button">
                                            <span>Kopēt rediģēšanas saiti</span>
                                            <span class="desc">Var pievienot, rediģēt saturu,  e-parakstīt un dzēst</span>
                                        </div>
                                        <div id="drawer_receive_button">
                                            <span>Kopēt pievienošanas saiti</span>
                                            <span class="desc">Var pievienot klāt failus, bet ne dzēst vai rediģēt esošos</span>
                                        </div>
                                    </div>
                                </div>
                                
                                                                
                                <a id="link_button" target="_blank" class="link_button" onclick="gaev( 'Index-Upload-Form', 'link-button',  'design' );">Dizains</a>
                                
                                                                
                            </div>
                                                        
                                                        
                            <div id="sender_mail_tt_wrap" class="full-width input-label">
                                <label for="sender_mail_tt" class="info">Saņemsi dzēšanas saiti un atgādinājumu</label>
                                <label for="sender_mail_tt">Tavs e-pasts</label>
                                <input type="text" size="72" name="me" id="sender_mail_tt" value="" placeholder="Ievadi e-pastu, uz kuru saņemsi rediģēšanas un dzēšanas saiti" onclick="gaev( 'Index-Upload-Form', 'Your-Email', strServerHttpHost );">
                            </div>
                            
                            
                            <!-- upload form : input field for receiver emails -->
                            <div id="recepients_emails_wrap" class="full-width input-label">
                                <label for="recepients_emails" class="info">Vairākus e-pastus atdali ar komatu</label>
                                <label for="recepients_emails">Saņēmēju e-pasti</label>
                                <input type="text" size="72" name="e" id="recepients_emails" onkeyup="" placeholder="Ievadi e-pastus, kam nosūtīt piekļuves saiti un atgādinājumu par failu termiņu" onclick="gaev( 'Index-Upload-Form', 'Receiver-Email', strServerHttpHost );" class="ui-autocomplete-input" autocomplete="off">
                            </div>
                            <!-- /upload form : input field for receiver emails -->
                            
                            <!-- upload form : input fields for folder's name -->
                            <div id="after_file_save__folder_name" class="full-width input-label">
                                <label for="display_name">Mapes nosaukums</label>
                                <input name="display_name" id="display_name">
                                <img src="/images/landing/form/edit_blue.svg" class="my_tooltip" my_title="Rediģēt">
                            </div>
                            <!-- /upload form : input fields for folder's name -->
                            
                            <!-- upload form : input fields for folder's description -->
                            <div id="after_file_save_adddescription">
                                <textarea cols="69" rows="2" name="mailtext" id="send_tt" placeholder="Ieraksti šeit failu aprakstu, kas uzrādīsies epastā un apskatot failus"></textarea>
                            </div>
                            <!-- /upload form : input fields for folder's description -->

                            
                            <!-- upload form : folder access rights -->        				
                            <div id="after_file_save_access_rights" class="input-label">
                                <label for="file_save_access_rights">Piekļuve</label>
                                <div class="styled-select">
                                    <select name="file_save_access_rights" id="file_save_access_rights">
                                        <option value="">&nbsp;</option>
                                        <option value="LINK" selected="selected">Jebkuram ar saiti</option>
                                        <option value="PASSWORD">Uzlikt paroli</option>
                                        <option value="PRIVATE">Privāti tikai man</option>
                                        <option value="PUBLIC">Publicēts manā profila lapā</option>
                                    </select>
                                <div class="select-selected">Jebkuram ar saiti</div><div class="select-items select-hide"><div id="file_save_access_rights_LINK">Jebkuram ar saiti</div><div id="file_save_access_rights_PASSWORD">Uzlikt paroli</div><div id="file_save_access_rights_PRIVATE">Privāti tikai man</div><div id="file_save_access_rights_PUBLIC">Publicēts manā profila lapā</div></div></div>
                            </div>
                            <!-- /upload form : folder access rights -->
                            
                            <!-- upload form : how long save files -->
                            <div id="after_file_save_storage_deadline" class="input-label">
                                <label for="days_to_save_files">Cik ilgi glabāt failus</label>
        
                                <div class="styled-select">
                                    <select name="days_to_save_files" id="days_to_save_files">
                                        <option value="2">2 dienas</option>
										<option value="-1">Pastāvīgi</option>
                                        <option value="1">1 diena</option>
                                        <option value="3">3 dienas</option>
                                        <option value="7">1 nedēļu</option>
                                        <option value="14" selected="selected">2 nedēļas</option>
                                        <option value="31">1 mēnesi</option>
                                        <option value="62">2 mēnešus</option>
                                        
                                    </select>
                                <div class="select-selected">2 nedēļas</div><div class="select-items select-hide"><div id="days_to_save_files_-1">Pastāvīgi</div><div id="days_to_save_files_1">1 diena</div><div id="days_to_save_files_3">3 dienas</div><div id="days_to_save_files_7">1 nedēļu</div><div id="days_to_save_files_14">2 nedēļas</div><div id="days_to_save_files_31">1 mēnesi</div><div id="days_to_save_files_62">2 mēnešus</div></div></div>
                            </div>
                            <!-- /upload form : how long save files -->
                            
                            <!-- upload form : upload password -->
                            <div id="after_file_save_password" class="input-label">
                                <label for="upload_password">Parole</label>
                                <input name="upload_password" id="upload_password" placeholder="Ievadi mapes paroli">
                            </div>
                            <!-- /upload form : upload password -->

                                                        
                            <!-- upload form : save button -->
                            <button type="submit" id="sendfiles" class="upload_button">
                                Saglabāt un nosūtīt                                <img src="/images/landing/send.svg" alt="Save and send">
                            </button>
                            <!-- /upload form : save button -->
                            
                            <input type="hidden" name="del_key" id="del_key">
                            
                        </form>
                        
                    </div>
                    <!-- /upload form : text and form after file upload -->
                    
                    <!-- upload form : upload progress -->
                    <div id="upload_total_progress">
                        <div class="estimated-time">Pabeigs pēc <span class="value"></span></div>
                        <div class="speed-progress">
                            <span class="speed-progress_label">Vidējais ātrums</span>
                            <span class="value"></span>
                        </div>
                        <div class="uploaded-files">Uzkopēti: <span class="value"></span></div>
                        <div class="progress-bar">
                            <div class="progress-bar-inner"></div>
                        </div>
                        <div class="upload-size"></div>
                    </div>
                    <!-- /upload form : upload progress -->
                    
                    <!-- upload form : file select buttons -->
                    <div id="upload_box_inner">
            
                        <div id="savefiles">
                            <div class="upload_button uploadify_start_upoad_button start_upload_button">
                                <span class="cloud">
                                    <img class="cloud" src="/images/landing/upload_cloud_white.svg" alt="Start file upload">
                                    <img class="cloud-arrow" src="/images/landing/upload_cloud_white_arrow.svg" alt="Start file upload">
                                </span>
                                Sākt augšupielādi                            </div>
                        </div>
                        
                        <div id="file_adding_container">
            
                            <div id="file_select_button">
                                <div id="uploadifive-file_upload" class="uploadifive-button upload_button" style="height: 30px; line-height: 30px; overflow: hidden; position: relative; text-align: center; width: 100px;"><span class="select_files_button_text"><img class="cloud-white" src="/images/landing/upload_cloud.svg" alt="Upload files"> Uzkopēt failus</span><input id="file_upload" name="file_upload[]" type="file" multiple="multiple"><input type="file" style="opacity: 0; position: absolute; z-index: 999;" multiple="multiple"></div>
                            </div>
                            
                                                        
                            <div id="file_select_dragndrop_text" class="file_select_dragndrop_text">
                                vai uzmet failus un mapes                            </div>
                            <div class="file_select_dragndrop_text mobile">
                                Uzkopē un pārsūti failus. Saņemsi uzreiz saiti, ar kuru dalīties.                            </div>
                            
                                        
                        </div>
            
                        <div id="simple_file_select_button"></div>
            
                    </div>
                    <!-- /upload form : file select buttons -->
                    
                                        
                    <!-- upload form : receive files -->
                    <div id="receive_files_wrapper">
                        <div id="receive_files_button" onclick="gaev( 'Index-Upload-Form', 'Receive-Files', strServerHttpHost );">
                            Saņemt failus                        </div>
                        <div id="receive_files_desc">Izveido mapi failu saņemšanai no citiem</div>
                    </div>
                    <!-- /upload form : receive files -->
                    
                                        
                    <!-- upload form : text while selecting and loading file list -->
                    <div class="upload_waiting bottom not-shown">
                        Pēc failu izvēles uzgaidi, kamēr paradīsies saraksts                    </div>
                    <!-- /upload form : text while selecting and loading file list -->
                    
                    <!-- upload form : upload stats - size, files - text -->
                    <div id="upload_stats_text"></div>
                    <!-- /upload form : upload stats - size, files - text -->
                    
                    <!-- upload form : file list -->
                    <div id="upload_file_list"></div>
                    <!-- /upload form : file list -->

                </div>
                <!-- /upload form -->
                
                            
            </div>
			
						<!-- top info blocks -->
			
        	<!-- top info blocks : product icons -->
        	<div class="product-icons ">
        		
        		<a class="product-icon-card apps" href="/sync-share" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Store' );">
                    <div class="product-icon-name-wrap">
                        <div class="product-icon"></div>
                        <div class="product-icon-name">Glabā</div>
                    </div>
        			<div class="product-icon-desc">Lieto interneta pārlūkā datoros, telefonos un instalē failu lietotnes</div>
                    <div class="product-icon-learn">Uzzināt vairāk</div>
        		</a>
        		
                <a class="product-icon-card public" href="/public-profiles" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Publish' );">
                    <div class="product-icon-name-wrap">
                        <div class="product-icon"></div>
                        <div class="product-icon-name">Publicē</div>
                    </div>
        			<div class="product-icon-desc">Veido publiskas galerijas vai izvieto savu darbu portfolio</div>
                    <div class="product-icon-learn">Uzzināt vairāk</div>
        		</a>
        		
        		<a class="product-icon-card sell" href="/sell-files" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'Sell' );">
                    <div class="product-icon-name-wrap">
                        <div class="product-icon"></div>
                        <div class="product-icon-name">Pārdod</div>  
                    </div>
        			<div class="product-icon-desc">Pārdod savu digitālo saturu privāti vai publiski</div>
                    <div class="product-icon-learn">Uzzināt vairāk</div>
        		</a>

                <a class="product-icon-card esign lv" href="/eparaksts" target="_blank" onclick="gaev( 'Index-InfoPage', '6 first app clicks', 'eSign' );">
                    <div class="product-icon-name-wrap">
                        <div class="product-icon"></div>
                        <div class="product-icon-name">eParaksti</div>               
                    </div>
                    <div class="product-icon-desc">Paraksti, priekšskati un ērti koplieto e-dokumentus</div>
                    <div class="product-icon-learn">Uzzināt vairāk</div>
                </a>
        		
        	</div>
        	<!-- /top info blocks : product icons -->
	
        	<!-- /top info blocks -->
        	
            		
		</div>
		
	</div>

</section>



<!-- bottom info blocks -->

<section id="library" class="info-block">
    <div class="article">
        <h2>Atklāj <span>lietotāju veidotu</span> publisko saturu</h2>
        <div id="library_profiles_scroll" class="for_scroll">
            <div id="library_profiles">
                
                
                
                
                
                
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=119072982.jpg&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/futbols" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=718e8d6_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/futbols" target="_blank" class="profile_name">Latvijas Futbola federācija</a>
                    </div>
                    <div class="profile_details profile-119072982">
                        <div class="profile_detail">62.3K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">102K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/futbols?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('futbols?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/futbols?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=118515291.png&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/Metta" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=710665b_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/Metta" target="_blank" class="profile_name">Metta</a>
                    </div>
                    <div class="profile_details profile-118515291">
                        <div class="profile_detail">19.7K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">17K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/Metta?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('Metta?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/Metta?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=116496348.jpg&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/zavadskis" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=6f197dc_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/zavadskis" target="_blank" class="profile_name">Photographer Andrejs Zavadskis</a>
                    </div>
                    <div class="profile_details profile-116496348">
                        <div class="profile_detail">41.2K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">5.7K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/zavadskis?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('zavadskis?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/zavadskis?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=15762282.jpg&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/Photoriga.com" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=f0836a_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/Photoriga.com" target="_blank" class="profile_name">PhotoRiga.com</a>
                    </div>
                    <div class="profile_details profile-15762282">
                        <div class="profile_detail">77.4K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">6.8K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/Photoriga.com?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('Photoriga.com?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/Photoriga.com?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=118644564.jpg&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/LatvijasUniversitate" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=7125f54_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/LatvijasUniversitate" target="_blank" class="profile_name">Latvijas Universitātes fotoarhīvs</a>
                    </div>
                    <div class="profile_details profile-118644564">
                        <div class="profile_detail">54.1K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">150.6K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/LatvijasUniversitate?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('LatvijasUniversitate?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/LatvijasUniversitate?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="library_top_profiles_item">
                <div class="profile_cover" style="background: url(/profile_background.php?i=15857623.jpg&amp;t=1732611282), #2B3D52"> 
                    <div class="profile_gradient"></div>
                </div>
                <div class="profile_info">
                    <a href="/Stirnubuks.lv" target="_blank" class="profile_img" style="background-image: url('/avatars/thumb.php?i=f1f7d7_2147483647.jpg')"></a>
                    <div class="profile_name_wrap">
                        <a href="/Stirnubuks.lv" target="_blank" class="profile_name">Stirnubuks.lv</a>
                    </div>
                    <div class="profile_details profile-15857623">
                        <div class="profile_detail">933K Skatījumi</div>
                        <div class="profile_detail profile_detail_file_stats">432.2K Bildes</div>
                    </div>
                    <div class="profile_button">
                        <div onclick="if(! false){$( '.login_return_url' ).val( '/Stirnubuks.lv?follow_profile' );showCreateAccount();}else{if($(this).hasClass('is_following')) { window.open('Stirnubuks.lv?unfollow_profile', '_blank'); $(this).removeClass('is_following'); } else { window.open('/Stirnubuks.lv?follow_profile', '_blank'); $(this).addClass('is_following'); }}" class="header_profile_info_button button_follow ">
                            <span class="text_follow">Sekot</span>
                            <span class="text_following">Sekoju</span>
                            <span class="text_unfollow">Nesekot</span>
                        </div>
                    </div>
                </div>
            </div></div>
        </div>
        <div class="library_button" onclick="gaev( 'Index-InfoPage', 'Library', 'Explore' ); window.open( '/discover', '_self' )">
            Skatīt vairāk        </div>
    </div>
</section>
<!-- one platform -->
<section id="one_platform" class="info-block">

    <div class="image-grid article">

        <div class="image-grid-item dual image">
            <img src="images/landing/articles-with-pictures/Files.fm-cloud-storage-platform-Zavadskis.webp" alt="File upload and file sharing cloud storage platform">
        </div>

        <div class="image-grid-item dual content">
            <h2><span>Viena platforma</span> jūsu saturam</h2>
            <img class="mobile" src="images/landing/articles-with-pictures/Files.fm-cloud-storage-platform-Zavadskis.webp" alt="File upload and file sharing cloud storage platform">
            <div class="file_types">
                Foto                <div class="file_types_seperator">|</div>
                Video                <div class="file_types_seperator">|</div>
                Audio                <div class="file_types_seperator">|</div>
                Dokumentiem                <div class="file_types_seperator">|</div>
                un citiem            </div>
            <div class="items-pro">
                <div class="item-pro">Pārsūti lielus failus pilnā kvalitātē</div>
				<div class="item-pro">Abonē neierobežotu diska vietu</div>
				<div class="item-pro">Automātiski glabā rezerves kopijas</div>
                <div class="item-pro">Dalies ar skaistām galerijām</div>
				<div class="item-pro">Publicē saturu savā profila lapā</div>
                <div class="item-pro">Pārdod saturu un pieņem maksājumus</div>
                <div class="item-pro">Kontrolē pieejas tiesības</div>
                
                
            </div>
            <div class="one_platform_button" onclick="gaev( 'Index-InfoPage', 'One Platform', 'Get Started' ); showCreateAccount(); return false;">
                Sākt lietot bez maksas            </div>
        </div>
    
    </div>

</section>
<!-- /one platform -->


<!-- pricing plans -->
<section id="info-block_pricing-plans" class="info-block">
    
    <div class="container">
        <h2>Abonē tik daudz vietas cik nepieciešams!</h2>
		        
<link rel="stylesheet" type="text/css" media="all" href="/css/elements/pricing_v2.css?v=11">

<div class="pricing" id="pricing">
    <h2>Uzlabo sava konta iespējas un abonē diska vietu</h2>
    <div class="pricing-flex pricing">
        
                
            <div id="free" class="pricing-flex-item">
            <div>
                <ul>
                    <li class="name">Basic</li>
                    <li class="price_wrap">
                        <div class="price">$0</div>
                    </li>
                    <li><b>20GB uz mēnesi</b></li>
                    <li>5GB faila izmērs</li>
                    <li>Privāta koplietošana ar lietotājiem</li>
                    <li>Failu saņemšanas linki</li>
                    <li>Pielāgojama satura lapa un pārdošana</li>
                    <li>RAW konvertēšana uz JPG</li>
                    <li>Video konvertēšana uz MP4</li>
                    <li>Failu konvertēšana uz PDF</li>
                </ul>
                <div>
                    <a href="#" class="button" style="font-weight: bold;" onclick="gaev( 'Index-InfoPage', 'Free', 'Signup-Free' ); showCreateAccount(); return false;">
                        Sāc bez maksas                    </a>
                </div>
            </div>
        </div>
        
                
        <!-- break to a new row, 3x1 grid -->
        <hr class="three-by-one">
        <div id="pro" class="pricing-flex-item  ">
            <div class="banner">Populārākās funkcijas</div>
            <div>
                <ul>
                    <li class="name">PRO</li>
                    <li class="price_wrap">
                        <div class="price">
                            $7,9                            <span>/mēnesī uz gadu</span>
                        </div>
                    </li>
                    <li>2TB vieta + abonē klāt</li>
					<li>3x lielāks ātrums</li>				
                    <li>Bez reklāmām</li>
                    
                    <li>20GB faila izmērs</li>
                    <li>30 dienas Undelete</li>
                    <li>Paroles uzlikšana linkam</li>
                    <li>Piekļuves kontrole</li>
                    <li>Neierobežota p2p datuplūsma</li>
                    <li>Online dokumentu rediģēšana</li>
                </ul>
                <div>
                                            <a href="#" class="button red" onclick="gaev( 'Index-InfoPage', 'Pro', 'Signup-Pro' ); $( '.login_return_url' ).val( 'storage-plans#subscribe' ); showCreateAccount(); return false;">
                                        Abonēt PRO                    </a>
                </div>
            </div>
        </div>
        <!-- break to a new row, 3x1 grid -->
        <hr class="three-by-one">    
        <div id="team" class="pricing-flex-item">    
            <div>
                <ul>
                    <li class="name">TEAM</li>
                    <li class="price_wrap">
                        <div class="price">
                            $19                            <span>/mēnesī uz gadu</span>
                        </div>
                        <div class="price">+ PVN</div>
                    </li>
                    <li><b>2TB+ un 4 lietotāji iekļauti</b></li>
                    <li>200GB faila izmērs</li>
                    <li>Piekļuves un darbību žurnāls</li>
                    <li>Failu versiju pārvaldība</li>
                    <li>Failu atjaunošana līdz 5 gadi</li>
                    <li>2FA un drošības iestatījumi</li>
                    <!--<li>Apmaksa ar rēķinu</li>-->
                    <li>Darbību un piekļuves žurnāls</li>
                    <li>Biznesa tehniskais atbalsts</li>
                </ul>
                <div>
                                            <a href="#" class="button" onclick="gaev( 'Index-InfoPage' , 'Team', 'Signup-Team' ); $( '.login_return_url' ).val( 'storage-plans#subscribe' ); showCreateAccount(); return false;">
                                        
                    Abonēt TEAM kontu                    </a>
                </div>
            </div>
        </div>
        
                
    </div>
</div>
<!--<script src="js/pricing.js?v=3"></script>-->
    </div>

</section>
<!-- /pricing plans -->

<!-- install apps -->
<section id="install-apps">
	<div class="article">
        <img class="title-image" src="images/landing/articles-with-pictures/2-devices.webp" alt="Devices" loading="lazy">
		<h2 class="install-apps">
			Izmanto Failiem.lv jebkurā ierīcē pārlūkā vai lietotnēs un nekad nepietrūks vietas!		</h2>
		<div class="product-icons">
		
            <a class="product-icon" href="#" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'My-Files' ); showCreateAccount(); return false;">
				<img src="images/UI_icons/home_filled.svg" alt="My Files" loading="lazy">
				Web			</a>
			
			<a class="product-icon" href="#" download="" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Windows' ); showCreateAccount(); return false;">
				<img src="images/UI_icons/windows.svg" alt="Windows File sync app" loading="lazy">
				Windows			</a>
			
			<a class="product-icon" href="https://play.google.com/store/apps/details?id=com.files.fm" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Android' );">
				<img src="images/UI_icons/android.svg" alt="Android Files app" loading="lazy">
				Android			</a>
			
			<a class="product-icon" href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" target="_blank" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'iOS' );">
				<img src="images/UI_icons/apple.svg" alt="iOS File upload app" loading="lazy">
				iOS			</a>
			
			<a class="product-icon" href="#" download="" onclick="gaev( 'Index-InfoPage', 'Install-Apps', 'Mac' ); showCreateAccount(); return false;">
				<img src="images/UI_icons/apple.svg" alt="Mac" loading="lazy">
				macOS			</a>
		</div>
	</div>
</section>
<!-- /install apps -->


<section id="client_infinite_try">
<!-- logos -->	
	<div class="article client-logos">
	
		<h2>Jūsu datu <span>drošība un aizsardzība</span> ir mūsu prioritāte</h2>
		
        <div class="text">
			Failiem.lv ir vairāk kā 16 gadu pieredze datu glabāšanas risinājumu izstrādē. 
<br>Piesakies bezmaksas konsultācijai par biznesa un drošības risinājumiem.		</div>
		
        <div class="container">
			<a href="https://www.chamber.lv/" target="_blank">
				<img src="images/filebox/logos/new2/LTRK.png?v=2" alt="LTRK" loading="lazy">
			</a>
			<a href="https://www.sprk.gov.lv/" target="_blank">
				<img src="images/filebox/logos/new2/SPRK.png?v=2" alt="SPRK" loading="lazy">
			</a>
			<a href="https://likta.lv/" target="_blank">
				<img src="images/filebox/logos/new2/LIKTA.png?v=2" alt="LATVIJAS INFORMĀCIJAS UN KOMUNIKĀCIJAS TEHNOLOĢIJAS ASOCIĀCIJA" loading="lazy">
			</a>
			<a href="https://www.itbaltic.com/" target="_blank">
				<img src="images/filebox/logos/new2/IT-cluster.png?v=2" alt="IT klasteris" loading="lazy">
			</a>
			<a href="https://www.arcers.lv/" target="_blank">
				<img src="images/filebox/logos/new2/arcers.png?v=2" alt="Arčers" loading="lazy">
			</a>
			<a href="https://lff.lv/" target="_blank">
				<img src="images/filebox/logos/new2/LFF.png" alt="LFF" loading="lazy">
			</a>
			<a href="https://ltv.lsm.lv/lv/" target="_blank">
				<img src="images/filebox/logos/new2/ltv.png?v=2" alt="LTV" loading="lazy">
			</a>
			<a href="https://www.sigulda.lv/public/lat/pasvaldiba/dome/" target="_blank">
				<img src="images/filebox/logos/new2/sigulda.png?v=2" alt="Siguldas pašvaldība" loading="lazy">
			</a>  
			<a href="https://www.eparaksts.lv/lv/" target="_blank">
				<img src="images/filebox/logos/new2/eparaksts.png?v=2" alt="Eparaksts" loading="lazy">
			</a> 
			<a href="https://www.lvrtc.lv/" target="_blank">
				<img src="images/filebox/logos/new2/LVRTC.png?v=2" alt="Latvia State Radio and Television Centre" loading="lazy">
			</a>
            <a href="http://www.fsmetta.lv/" target="_blank">
				<img src="images/filebox/logos/new2/fkmetta.png?v=2" alt="Metta" loading="lazy">
			</a>
			<a href="https://ec.europa.eu/easme/en/innosup" target="_blank">
				<img src="images/filebox/logos/new2/europe_h2020_program.png?v=2" alt="The Horizon 2020 INNOSUP programme aims to test new approaches for better innovation support through funding opportunities for innovation actors across Europe." loading="lazy">
			</a>
			<a href="https://developer.microsoft.com/" target="_blank">
				<img src="images/filebox/logos/new2/microsoft_cloud_storage_partner.png?v=2" alt="Microsoft cloud storage partner" loading="lazy">
			</a>
			<a href="https://www.e-shelter.de/en" target="_blank">
				<img style="height: 20px" src="images/filebox/logos/new2/e-shelter.png?v=2" alt="e-shelter is part of the Global Data Centers division of NTT and develops and runs high availability data centers." loading="lazy">
			</a>
			<a href="https://www.tet.lv" target="_blank">
				<img src="images/filebox/logos/new2/lattelecom_tet_v2.png?v=2" alt="TET data centers" loading="lazy">
			</a>
			<a href="https://blockvis.com" target="_blank">
				<img src="images/filebox/logos/new2/blockvis.com-logo.png?v=2" alt="Blockvis data experts" loading="lazy">
			</a>				
		</div>


        <div class="privacy_items">
            <div class="item_text">
                Jūsu faili tiek glabāti drošos datu centros Eiropā, atbilstoši GDPR datu regulai.            </div>
            <div class="item_text">
                Mēs pielietojam vairāku līmeņu drošības risinājumus un nodrošinam bojājumpiecietīgu arhitektūru, atkarībā no konta līmeņa.            </div>
            <div class="item_text">
                Sistēmās izmantojam jaunākās šifrēšanas un autentifikācijas tehnoloģijas, lai nodrošinātu pilnvērtīgu jūsu datu drošību.            </div>
            <div class="item_text">
                Aizsargājiet savus datus, abonējot biznesa kontu un izmantojiet 5 gadu rezerves kopiju sniegtās priekšrocības!            </div>
        </div>
	</div>
	
<!-- /logos -->

<!-- Infinite -->
	<div id="infinite" class="article">
        <h2>Viena platforma, neierobežotas iespējas</h2>
        <div class="text">
			Datu glabāšanas platforma digitālā satura veidotājiem		</div>
        <div class="infinite_items">
            <div class="item_card">
                <img src="images/landing/feature-1.webp" alt="features" loading="lazy">
                <div class="title">Noderīgi rīki katram faila tipam</div>
                <div class="desc">Neatkarīgi no tā, vai fotografē, filmē, radi mūziku vai dokumentus, mēs nodrošinām netraucētu darbu ar visiem failu tipiem</div>
            </div>
            <div class="item_card">
                <img src="images/landing/feature-2.webp" alt="photos" loading="lazy">
                <div class="title">Augstas kvalitātes foto un video</div>
                <div class="desc">Dalies ar bildēm un video no sporta vai citiem pasākumiem un ļauj dalībniekiem tos lejupielādēt augstā kvalitātē</div>
            </div>
            <div class="item_card">
                <img src="images/landing/feature-3.webp" alt="private" loading="lazy">
                <div class="title">Privātas galerijas taviem klientiem</div>
                <div class="desc">Izveido skaistas galerijas un droši tās koplieto ar klientiem. Sniedz iespēju ērti priekšskatīt un lejupielādēt saturu</div>
            </div>
            <div class="item_card">
                <img src="images/landing/feature-4.webp" alt="public" loading="lazy">
                <div class="title">Pielāgojams publiskais profils satura demonstrēšanai</div>
                <div class="desc">Publicē savu portfolio vai veido publiskas galerijas ar vai bez lejupielādes un pārdošanas funkcijas</div>
            </div>
            <div class="item_card">
                <img src="images/landing/feature-5.webp" alt="store" loading="lazy">
                <div class="title">Droši uzglabā un dalies ar savām zināšanām un radošumu</div>
                <div class="desc">Video kursi, e-grāmatas, podkāsti, dizains&nbsp;— neatkarīgi no tā, kas tev padodas&nbsp;— uzglabā, dalies vai pārdod to</div>
            </div>
            <div class="item_card">
                <img src="images/landing/feature-6.webp" alt="tools" loading="lazy">
                <div class="title">Izmanto satura pārdošanas rīkus un pelni vairāk</div>
                <div class="desc">Uzliec cenu un pārdod savu saturu publiski vai privāti. Norādi lietošanas tiesības, apskati statistiku,  saņem atlīdzību u.c.</div>
            </div>
            
        </div>
	</div>
<!-- /Infinite -->

<!-- try out button -->
	<div class="try_or_start try_or_start_repeat">
        <div class="try_or_start_create_account_header">
            Izveido kontu un iegūsti vairāk iespējas!        </div>
        <div class="sell_files_buttons_text">
            <div class="sell_files_bottom_buttons">
                <div class="try_or_start_button" onclick="gaev( 'Index-InfoPage', 'Visit demo', 'Sell-Demo-Bottom' ); showCreateAccount(); return false;">
                    Sākt lietot                </div>
            </div> 
            <div class="sell_files_pointed_text" onclick="window.open( '/terms', '_blank' )">
                <div class="sell_files_pointed_text_inner">
                    <div class="sell_files_pointed_text_pointer"></div>
                    Reģistrējies un iegūsti diska vietu, droši koplieto failus un pārdod digitālo saturu                </div>
            </div>
        </div>
    </div>

<!-- /try out button -->
</section>

<!-- features -->
<section class="info-block" id="topfeatures">

    <div class="container">

        <div class="image-grid">

            <div class="image-grid-item dual content">

                <h2>
                    Kāpēc izmantot failiem.lv                </h2>
                <img class="mobile" src="images/landing/articles-with-pictures/3-why-choose.webp" alt="Securely Store">
                <div class="items-pro-wrap">
                    <div class="items-pro-more" onclick="$(this).parent().addClass('open');">Rādīt vairāk</div>
                    <div class="items-pro-less" onclick="$(this).parent().removeClass('open');">Sakļaut</div>
                    <div class="items-pro">
                        <div class="item-pro">Privāta datu glabāšanas vieta par labu cenu</div>
                        <div class="item-pro">Neierobežots trafiks un ātra paralēla augšupielāde</div>
                        <div class="item-pro">Foto, video, audio un citu formātu attēlošana un straumēšana</div>
                        <div class="item-pro">Automātiski konvertē RAW uz JPG. Video uz MP4. Doc uz PDF</div>
                        <div class="item-pro">Dokumentu rediģēšana pārlūkā un koplietošana</div>
                        <div class="item-pro">Automātiska failu pārbaude ar antivīrusu</div>
                        <div class="item-pro">Viss satura pārdošanai un maksājumu saņemšanai</div>
                        <div class="item-pro">Privāts, šifrēts un GDPR Datu regulai atbilstošs</div>
                        <div class="item-pro">Daudzu gigabaitu pārsūtīšana saglabājot kvalitāti</div>
                        <div class="item-pro">Var uzlikt piekļuves paroli un konkrētu dzēšanas datumu</div>
                        <div class="item-pro">Automātiska sinhronizācija un dublēšana. Dzēsto failu atjaunošana.</div>
                        <div class="item-pro">Integrēts E-paraksts. Komentāri un failu ietagošana</div>
                        <div class="item-pro">Download pogu atslēgšana - iespēja tikai apskatīt</div>
                        <div class="item-pro">Izvērstā meklēšana. Tagu un EXIF atbalsts. AI attēlu atpazīšana.</div>
                        <div class="item-pro">Detalizēts darbību žurnāls, piekļuve failiem un lejupielādes analīze</div>
                        <div class="item-pro">Satura iekļaušana un API integrācija</div>
                    </div>
                </div>
            </div>

            <div class="image-grid-item dual image">
				<img src="images/landing/articles-with-pictures/3-why-choose.webp" alt="Securely Store">
			</div>
        
        </div>
        
    </div>

</section>
<!-- /features -->


<!-- bouncing arrow -->
<div class="arrow bounce hidden">
	<a class="" href="#">
  		<img id="scroll-down" onclick="gaev( 'Index-InfoPage', 'Scroll-Down', 'Scroll-Arrow' );" src="images/landing/arrow-down-button.svg" alt="⌄">
	</a>
</div>
<!-- /bouncing arrow -->

<!-- /bottom info blocks -->




    </div>
    
    

    <link rel="stylesheet" type="text/css" media="all" href="/css/footer.css?v=17">
        <div id="footer_container">
        <div id="footer" class="clearfix">
        	
        	        
            <div class="footer_block footer_block_left">                
                <div class="float_left">
                    <p class="header">2008 - 2024                    <img src="images/european-flag.svg" width="24" height="24" alt="Files.fm EU Cloud storage">
                    EU Files.fm cloud storage                    </p>
                    
                    <p>Failiem.lv glabāšanas platforma piedāvā visaptverošus risinājumus visa veida satura - dokumentu, foto, video, mūzikas, lietojumprogrammu, grāmatu glabāšanai, kopīgošanai, publicēšanai un pat pārdošanai.</p>
                    
                    <div id="files_socials">
                                                    <a class="social_icon info" href="https://failiem.lv/info" target="_blank"></a>
                                            
                        
                        <a class="social_icon facebook" href="https://www.facebook.com/Filesfm/" target="_blank"></a>
                        <a class="social_icon linkedin" href="https://lv.linkedin.com/company/files.fm" target="_blank"></a>
                        <a class="social_icon instagram" href="https://www.instagram.com/files.fm/" target="_blank"></a>
                        <a class="social_icon twitter" href="https://twitter.com/files_fm" target="_blank"></a>
                        <a class="social_icon tiktok" href="https://www.tiktok.com/@files.fm" target="_blank"></a>
                    </div>

                    <!--
                    <div id="google_translate_element_wrapper">  
                        <span id="google_translate_element_label">Valoda</span>
                        <div id="google_translate_element"></div>
                    </div>
                    <script>
                        function googleTranslateElementInit() {
                        new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
                        }
                    </script>
                    <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
                    -->
                </div>
            </div>
            
            <div class="footer_block_right">
            
            	                <div class="footer_block">
                    <div class="footer_title">
                        Darba sākšana                    </div>
                    
                    <ul>
                    	                        <li>
                            <a href="" onclick="showCreateAccount(); return false;">Izveidot kontu / Ienākt</a>
                        </li>
                                                <li>
                            <a href="storage-plans">Cenas</a>
                        </li>
                        <li>
                            <a href="/business">Biznesam</a>
                        </li>
                        <li>
                            <a href="/datu-drosibai" target="_blank">Datu drošībai</a>
                        </li>                        
                        <li>
                            <a href="terms">Noteikumi</a>
                        </li>
                        <li>
                            <a href="questions-about-online-file-storage">Jautājumi</a>
                        </li>
                        <li>
                            <a href="/token">Files.fm Token</a>
                        </li>                        
                                               
                    </ul>
                </div>
                                
                                <div class="footer_block">
                    <div class="footer_title">
                        Risinājumi                    </div>
                    
                    <ul>
                        
						<li>
                            <a href="/sync-share">Failu sinhronizēšana</a>
                        </li>
						
						<li>
                            <a href="/backup">Rezerves kopiju izveide</a>
                        </li>
                        
                        <li>
                            <a href="/ielades-forma" target="_blank">Failu ielādes forma</a>
                        </li>
                        
                        <li>
                            <a href="https://failiem.lv/servers" target="_blank">Virtuālo serveru noma</a>
                        </li>
                        
                        <li>
                            <a href="/sell-files">Satura pārdošanas e-komercija</a>
                        </li>


                        
                        <li>
                            <a href="/public-profiles" target="_blank">Satura publicēšanas katalogs</a>
                        </li>
                        
                                                    <li>
                                <a href="/foto-druka" target="_blank">Foto izdrukas</a> | <a href="/foto-drukas-produkti" target="_blank">Drukas produkti</a>
                            </li>
                             

                        
                    </ul>
                </div>
                                
                <div class="footer_block">
                    <div class="footer_title">
                        Apps                    </div>
                    
                    <ul>
                        <li>
                            Mobile:
                            <a href="https://play.google.com/store/apps/details?id=com.files.fm" target="_blank"> Android </a>
							<!-- |                             <a href="/software/android.apk" download>APK</a> --> |
                            <a href="https://apps.apple.com/in/app/files-fm-cloud-storage/id1636301796" target="_blank"> Apple iOS </a>
                        </li>
						
                        <li>
                            Sync:
                            <a href="/sync-share#setup">Windows | MacOS</a>
                        </li>
                        <!--
                        <li>
                            Backup: <a href="/backup#setup">Windows | MacOS</a>
                        </li>
						-->						
                        
                        <li>
                            <a href="?convert-to-pdf">Convert to PDF</a> | <a href="?convert-to-mp4">Convert to MP4</a> 
                        </li>
                        
                                                <li>
                            <a href="/webdav-info">Webdav tīkla disks</a>

						
                        </li><li>
                            <a href="/discover" target="_blank">Failiem.lv Saturs</a>
                        </li>
                        
                                                <li>
                            <a href="https://video.failiem.lv/" target="_blank">Video konferences</a>
                        </li>
                         

                                            </ul>
                </div>
                
                                <div class="footer_block">
                    <div class="footer_title">
                            Atbalsts                    </div>
                    
                    <ul>
                        <li>
							<a href="https://forum.files.fm/" target="_blank">Lietotāju forums</a>
                        </li>
						<li>
                            <a href="https://discord.gg/BCTJyNZABJ" target="_blank">Discord chat</a>
                        </li>                        
						<li>
                            <a href="./contacts">Sazinies ar mums</a>
                        </li>

                        <li>
                            <a href="about">Par Failiem.lv</a>
                        </li>
                        
                        <li>
                            <a href="./api.php">API izstrādātājiem</a>
                        </li>                    
                        							<a href="https://blog.files.fm/instrukciju-saraksts-lv/" target="_blank">
                                Info raksti</a>
                            <!--
							<li>
                                <a href="./advert">Reklāma</a>
                            </li>
							-->
                                                </ul>
                </div>
                            </div>

            <p class="header_below">2008 - 2024 EU Files.fm cloud storage</p>
            
                    </div>
        
        <!-- <div id="footer_bottom_line"></div>-->
    </div>
    
    
</div>

<div id="info_tooltip_global"></div>



<script>
    function CloseSuggestion(id) {
        
        if (id == 'suggest_lang') {
            $.get("includes/suggest_language.php", {sLang: 1});
        }
        else if (id == 'suggest_register'){
            $.get("includes/suggest_language.php", {sReg: 1});
        }
        
        document.getElementById(id).style.display='none';
    }
</script><iframe height="0" width="0" style="display: none; visibility: hidden;"></iframe>

    <script>
        
        $(window).bind("load", function() {
            $( "#register_from_ico" ).val( 0 );
            if	(window.location.hash == '#sign_up') {
                
                showCreateAccount();
            }
            else if	(window.location.hash == '#log_in') {
                
                showSignIn();
            }
            else if	(window.location.hash == '#forgot_password') {
                
                showForgotPassword();
            }
        });
    
    </script>
    


<script>
    window.addEventListener("stpdRendered", function (e) {
        var adName =  e.detail.name;
        var adWinner = e.detail.winner;
        var cleanEventName = adName.split('/')[2];

        if ( ( (cleanEventName == "files_970x90_sticky_anchorad_desktop") || (cleanEventName == "files_320x100_sticky_anchorad_mobile") ) && (adWinner != "passback")  ) {
            setTimeout(function () {
                var anchorParent = top.document.querySelector("#files_970x90_sticky_anchorad_responsive");
                var anchorIframe = top.document.querySelector("#files_970x90_sticky_anchorad_responsive > div > iframe");
                var anchorClose = top.document.querySelector("#stpd_close");
                if(window.innerWidth > 1000) {
                    anchorParent.style.cssText += "width: " + (anchorIframe.clientWidth + 100) + "px";
                    anchorClose.style.cssText += "width: 40px; height: 35px; padding-top: 5px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255);";
                } else {
                    anchorClose.style.cssText += "width: 30px; height: 30px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255); top: -40px;";
                }
            }, 50);
        }
    });
</script>



<script>
    window.addEventListener("stpdRendered", function (e) {
        var adName =  e.detail.name;
        var adWinner = e.detail.winner;
        var cleanEventName = adName.split('/')[2];

        if ( ( (cleanEventName == "failiem_970x90_sticky_anchorad_desktop") || (cleanEventName == "failiem_320x100_sticky_anchorad_mobile") ) && (adWinner != "passback")  ) {
            setTimeout(function () {
                var anchorParent = top.document.querySelector("#failiem_970x90_sticky_anchorad_responsive");
                var anchorIframe = top.document.querySelector("#failiem_970x90_sticky_anchorad_responsive > div > iframe");
                var anchorClose = top.document.querySelector("#stpd_close");
                if(window.innerWidth > 1000) {
                    anchorParent.style.cssText += "width: " + (anchorIframe.clientWidth + 100) + "px";
                    anchorClose.style.cssText += "width: 40px; height: 35px; padding-top: 5px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255);";
                } else {
                    anchorClose.style.cssText += "width: 30px; height: 30px; border-top: unset; border-left: unset; border: 5px solid red; border-radius: 50%; background: rgb(255 255 255); top: -40px;";
                }
            }, 50);
        }
    });
</script>


                    
<!--                 
<div id="files_970x90_sticky_anchorad_top_responsive">
    <script>
        if ( typeof googletag != 'undefined' && typeof googletag.cmd != 'undefined' )
        {
            googletag.cmd.push(function() { googletag.display('files_970x90_sticky_anchorad_top_responsive'); });
        }
    </script>
</div>

<div id="failiem_970x90_sticky_anchorad_top_responsive">
    <script>
        if ( typeof googletag != 'undefined' && typeof googletag.cmd != 'undefined' )
        {
            googletag.cmd.push(function() { googletag.display('failiem_970x90_sticky_anchorad_top_responsive'); });
        }
    </script>
</div>
-->

                    
                 




 
    <div id="footer_bottom_floating_line" class="  cookies_msg_active  ">
        
        
		            <div id="footer_bottom_floating_line__cookies">
                <div id="footer_bottom_floating_line__cookies__text">
                    Lietojot šo vietni, jūs piekrītat Failiem.lv <a href="https://failiem.lv/terms" target="_blank">noteikumiem</a> un <a href="https://failiem.lv/privacy-policy" target="_blank">sīkdatnēm.</a>                </div>
                <button id="footer_bottom_floating_line__cookies__ok_btn" onclick="gaev('CookiePolicy', 'CloseButton', ''); $('#footer_bottom_floating_line__cookies').hide(); document.cookie='cookie_info_closed=true; max-age=31536000'; $( '#footer_bottom_floating_line' ).removeClass( 'cookies_msg_active' );">
                    OK                </button>
            </div>
        		
		
    </div>

                <script src="/js/inputs.js?v=1715343640"></script>
<script defer="" src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015" integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ==" data-cf-beacon="{&quot;rayId&quot;:&quot;8e88a7b0be072160&quot;,&quot;version&quot;:&quot;2024.10.5&quot;,&quot;serverTiming&quot;:{&quot;name&quot;:{&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfSpeedBrain&quot;:true,&quot;cfCacheStatus&quot;:true}},&quot;token&quot;:&quot;92d2d090fdca44aca63eff56c46d3726&quot;,&quot;b&quot;:1}" crossorigin="anonymous"></script>


<ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1" tabindex="0" style="display: none;"></ul><span role="status" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"></span></body></html>