sidebar – jQuery show/ hide based on scrollTop not hiding

I have a sidebar on my website that fadeIn when the user reaches a certain place which works well.
I have set the same sidebar to fadeOut / Display none when the user reacts further down the page.

This works to an extent but keeps flashing in and out when the user reaches the bottom of the page. I’d just like the user to get to the bottom of the page and the sidebar to fadeOut

Any idea?

This is my jQuery

jQuery(document).scroll(function () {
    var y = jQuery(this).scrollTop();
    if (y > 200) {
        jQuery('.elementor-widget-sidebar').fadeIn();
    } else {
        jQuery('.elementor-widget-sidebar').fadeOut();
    }

});

    jQuery(window).scroll(function(){
        if(jQuery(window).scrollTop() + $(window).height() > $(document).height() -200) {
            jQuery('.elementor-widget-sidebar').css('display', 'none');
        }else{
            jQuery('.elementor-widget-sidebar').css('display', 'block');
        }
    });

Unity update sizeDelta in OnValidate based on Layout Group computed values

I’m trying to update the sizeDelta of a RectTransform in OnValidate. I’m trying to grab the computed values from a Layout Group.

Here’s what I’ve got:

#if UNITY_EDITOR
        void OnValidate()
        {
            UnityEditor.EditorApplication.delayCall += Resize;
        }

        private void Resize()
        {
            if (this == null) return;
            RectTransform parentRect = (RectTransform)gameObject.transform;
            RectTransform textRect = (RectTransform)tabText.transform;
            textRect.sizeDelta = new Vector2(parentRect.rect.height, parentRect.rect.width);
            layoutElement.preferredHeight = parentRect.rect.height;
        }
#endif

At first this seemed to be working, but it only works the first time OnValidate runs. Subsequence invocations of Resize() sets the sizeDelta to Vector2(0, 0).

I’m wondering what causes this and if there’s a way to avoid it. If I remove the delayCall, the values are correct, but I get warnings:

SendMessage cannot be called during Awake, CheckConsistency, or
OnValidate

I’d like to do this at edit time since there’s no need to compute this stuff at runtime.

TuchaHost: hosting of HDD based virtual servers | NewProxyLists

1-1.jpg

TuchaHost: hosting of HDD based virtual servers​

Secure scalable hosting

TuchaHost is a secure scalable server hosting (VPS) in the Tucha cloud, based on the best data centers in Europe (mainly in Germany). TuchaHost allows you to host both a small web representation and a whole pool of hosting provider servers. The service is scaled by adding balanced cells. https://tucha.cloud/en/services/tuchahost

The service is perfect for hosting in the cloud:

– mail server;
– database server;
– various web projects;
– capacities reselling.

Our data center has Tier 3 level of reliability, which ensures the availability of information even during technical works. The servers have Intel Xeon E5 processors version 3 or higher and a frequency of at least 2.4 GHz. For data storage we use HDD drives combined in RAID10 disk arrays.

If you have additional questions or need our help in solving any tasks, write to us at sales@tucha.ua or call +380 44 583-5-583. We are ready to help you 24×7.

 

Looking for US based copyweriter

Advertising

y u no do it?

Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

Starts at just $1 per CPM or $0.10 per CPC.

Webform Computed Data Display Grade and Text based on result

I am building a quiz using webforms and the computed data twig and have a question if something is possible and if there is documentation on how to build this.

The quiz is 20 questions and each answer has a value of 1-5, I have all of the computed data working and it is able to show the final score properly, but was wonder if I could assign a grade and give short text feedback based on the score.

For example:
A user scores less than 70 they would receive a grade of “Below Average”, 70-80 Average and 81-100 “Above Average” and then some text giving them feedback on their score depending on this range they scored in. Is this possible to do in webforms?

Thank you so much for any help!

sharepoint online – SPO: Using JSON to Show/Hide Modern Form Field Based on Value Selected in Lookup Column

I am trying to modify the new-entry form of a modern list in SharePoint Online by hiding or showing a field based on the value selected in a preceding field on the same form. Microsoft offers straightforward guidance on how to do this using a JSON snippet.

While they don’t list a lookup column as an unsupported field type to use for this purpose, they don’t provide guidance on how to use one in this way, either. And from my testing, you can’t simply grab the value of a lookup field in the described way:

=if(($LookupField)=='Hourly', 'true', 'false')

If I use a choice field instead of a lookup field, this works fine. But doing some digging, in other contexts it looks like the value may be captured in a .lookupValue property, so I tried it this way:

=if(($LookupField.lookupValue)=='Hourly', 'true', 'false')

Still no luck. Does anyone know if it is possible to use the value from a lookup field in this way? And if so, what do I need to do to make the magic happen?

Does designing an automatic interaction based on user intent a good thing?

We have this flow in our interface where user can unlink their accounts that are connected to the application. We have a button to unlink their bank, but we also have an option where user can manually unlink each account. The process here is quite tricky because they need to click the “submit” button once they are okay with their changes, reason being they need to enter 2FA,and we do not want them to enter 2FA for each change or unlink that they do for each account if needed. Sorry for the bad sketch but this is how it is currently laid out:
enter image description here

In cases that user tries to manually unlink each account and does not use the “unlink bank” option, the suggested interaction is when user clicks the last account with the “Unlink”, the system will detect their intent to unlink all accounts and the bank and will show a confirmation dialog if they want to unlink the bank:
enter image description here

It is a good interaction as it detects the intent of the user and it removes one step which is clicking the “update” button, however my concern is that clicking on the last “unlink” button and then showing a confirmation dialog after might be something unexpected? I’m not sure if the modal interrupts the user work flow since it is detecting that it wants to unlink all accounts which equals to unlinking the bank and one less click of clicking the update button, while the modal offers a second chance whether to cancel or not. Is there an article that would suggest this is a bad idea?

We cannot do user testing at the moment that is why this is challenging. But I’d like to get your thoughts or if you have any articles you could share that relates to this topic, that would be really helpful.

How to join public group in Telegram group based on an invite code

Someone provide this: tg://join?invite=xxxxxxxx
(UIApplication sharedApplication) openURL:(NSURL URLWithString:@"tg://join?invite=xxxxxxxx") options:@{} completionHandler:^(BOOL success) {});

  1. if the xxxxxxx is private invite code, it worked.
  2. if the xxxxxxx is public invite code, the telegram show "This invite link has expired"
    What do I do?

Workflow Routing in SharePoint 2013 based on a user in a dropdown list on an InfoPath Form

I have 10 entries in my workflow routing in SharePoint 2013. Each workflow routing is for a different user that will approve the workflow (Level 2 Approver). The person that will submit the form will select this user from a dropdown list on the InfoPath form. When the person submits the InfoPath form, I need the workflow in SharePoint Designer to only use the entry in the workflow routing for the user that is selected in the InfoPath form. Is this possible?