Ejemplo n.º 1
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(43, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 3 "E:\SKOLENIE .NET-Pridane\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Views\Shared\_CookieConsentPartial.cshtml"

            var consentFeature = Context.Features.Get <ITrackingConsentFeature>();
            var showBanner     = !consentFeature?.CanTrack ?? false;
            var cookieString   = consentFeature?.CreateConsentCookie();

#line default
#line hidden
            BeginContext(248, 2, true);
            WriteLiteral("\r\n");
            EndContext();
#line 9 "E:\SKOLENIE .NET-Pridane\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Views\Shared\_CookieConsentPartial.cshtml"
            if (showBanner)
            {
#line default
#line hidden
                BeginContext(271, 180, true);
                WriteLiteral("    <nav id=\"cookieConsent\" class=\"navbar navbar-default navbar-fixed-top\" role=\"alert\">\r\n        <div class=\"container\">\r\n            <div class=\"navbar-header\">\r\n                ");
                EndContext();
                BeginContext(451, 375, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "47b8389951ec4c7587c9bd05aadc48d9", async() => {
                    BeginContext(564, 253, true);
                    WriteLiteral("\r\n                    <span class=\"sr-only\">Toggle cookie consent banner</span>\r\n                    <span class=\"icon-bar\"></span>\r\n                    <span class=\"icon-bar\"></span>\r\n                    <span class=\"icon-bar\"></span>\r\n                ");
                    EndContext();
                }
                                                                            );
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(826, 408, true);
                WriteLiteral(@"
                <span class=""navbar-brand""><span class=""glyphicon glyphicon-info-sign"" aria-hidden=""true""></span></span>
            </div>
            <div class=""collapse navbar-collapse"">
                <p class=""navbar-text"">
                    Use this space to summarize your privacy and cookie use policy.
                </p>
                <div class=""navbar-right"">
                    ");
                EndContext();
                BeginContext(1234, 92, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "69a7e78e2d5b44fe8c4c6fe950f683a7", async() => {
                    BeginContext(1312, 10, true);
                    WriteLiteral("Learn More");
                    EndContext();
                }
                                                                            );
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper = CreateTagHelper <global::Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper>();
                __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper);
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Controller = (string)__tagHelperAttribute_4.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
                __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.Action = (string)__tagHelperAttribute_5.Value;
                __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1326, 22, true);
                WriteLiteral("\r\n                    ");
                EndContext();
                BeginContext(1348, 107, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "079110ab9bec4d629bdf931bfb3f19d3", async() => {
                    BeginContext(1440, 6, true);
                    WriteLiteral("Accept");
                    EndContext();
                }
                                                                            );
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
                BeginWriteTagHelperAttribute();
#line 28 "E:\SKOLENIE .NET-Pridane\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Views\Shared\_CookieConsentPartial.cshtml"
                Write(cookieString);

#line default
#line hidden
                __tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
                __tagHelperExecutionContext.AddHtmlAttribute("data-cookie-string", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(1455, 439, true);
                WriteLiteral(@"
                </div>
            </div>
        </div>
    </nav>
    <script>
        (function () {
            document.querySelector(""#cookieConsent button[data-cookie-string]"").addEventListener(""click"", function (el) {
                document.cookie = el.target.dataset.cookieString;
                document.querySelector(""#cookieConsent"").classList.add(""hidden"");
            }, false);
        })();
    </script>
");
                EndContext();
#line 41 "E:\SKOLENIE .NET-Pridane\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Views\Shared\_CookieConsentPartial.cshtml"
            }

#line default
#line hidden
        }
Ejemplo n.º 2
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(27, 136, true);
            WriteLiteral("<br /><br /><br />\r\nThese buttons are styles using a single bootstrap theme specification. Themes in buttons are inherited\r\n            ");
            EndContext();
            BeginContext(163, 199, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "523794f2e8e042318d44f4cb6cef942b", async() => {
                BeginContext(184, 18, true);
                WriteLiteral("\r\n                ");
                EndContext();
                BeginContext(202, 35, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c2f113cfc8c74c90bd5463316e7a2a11", async() => {
                    BeginContext(223, 5, true);
                    WriteLiteral("Reset");
                    EndContext();
                }
                                                                            );
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(237, 18, true);
                WriteLiteral("\r\n                ");
                EndContext();
                BeginContext(255, 37, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("button", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "c9b8d6d5f8ab4ac897166d9027c3e4e0", async() => {
                    BeginContext(277, 6, true);
                    WriteLiteral("Submit");
                    EndContext();
                }
                                                                            );
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(292, 18, true);
                WriteLiteral("\r\n                ");
                EndContext();
                BeginContext(310, 32, false);
                __tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "ae0ac3668336401bb26d01e9504d0994", async() => {
                    BeginContext(332, 6, true);
                    WriteLiteral("Cancel");
                    EndContext();
                }
                                                                            );
                __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ThemeButton>();
                __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ThemeButton);
                __tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
                await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
                if (!__tagHelperExecutionContext.Output.IsContentModified)
                {
                    await __tagHelperExecutionContext.SetOutputContentAsync();
                }
                Write(__tagHelperExecutionContext.Output);
                __tagHelperExecutionContext = __tagHelperScopeManager.End();
                EndContext();
                BeginContext(342, 14, true);
                WriteLiteral("\r\n            ");
                EndContext();
            }
                                                                        );
            __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_FormGroupTagHelper = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.FormGroupTagHelper>();
            __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_FormGroupTagHelper);
            __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_FormGroupTagHelper.Theme = (string)__tagHelperAttribute_3.Value;
            __tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_3);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
            BeginContext(362, 18, true);
            WriteLiteral("\r\n\r\n<br /><br />\r\n");
            EndContext();
            BeginContext(380, 39, false);
            __tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "fb01a1f6a4a848d79ed313cae914398f", async() => {
            }
                                                                        );
            __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ModelExpressionTagHelper = CreateTagHelper <global::Ex_Ad_11_1_TH_ModelExpressionsAndCoordination.Helpers.ModelExpressionTagHelper>();
            __tagHelperExecutionContext.Add(__Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ModelExpressionTagHelper);
#line 11 "E:\SKOLENIE .NET-Pridane\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Ex_Ad_11_1_TH_ModelExpressionsAndCoordination\Views\Home\Index.cshtml"
            __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ModelExpressionTagHelper.StringValueFor = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.StringValue);

#line default
#line hidden
            __tagHelperExecutionContext.AddTagHelperAttribute("string-value-for", __Ex_Ad_11_1_TH_ModelExpressionsAndCoordination_Helpers_ModelExpressionTagHelper.StringValueFor, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
            await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);

            if (!__tagHelperExecutionContext.Output.IsContentModified)
            {
                await __tagHelperExecutionContext.SetOutputContentAsync();
            }
            Write(__tagHelperExecutionContext.Output);
            __tagHelperExecutionContext = __tagHelperScopeManager.End();
            EndContext();
        }