{"id":14068,"date":"2024-10-22T11:44:58","date_gmt":"2024-10-22T08:44:58","guid":{"rendered":"https:\/\/studios.aalto.fi\/?page_id=14068"},"modified":"2024-10-30T12:28:47","modified_gmt":"2024-10-30T10:28:47","slug":"feedback","status":"publish","type":"page","link":"https:\/\/studios.aalto.fi\/fi\/feedback\/","title":{"rendered":"Feedback"},"content":{"rendered":"\n<p>Send us questions, ideas and feedback on spesific places at our facilities. <\/p>\n\n\n\n<div class=\"wp-block-columns as-default-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column as-default-columns-main-content is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<form id=\"feedbackForm\">\n\n<label>\nYour feedback\n<textarea name=\"feedback\" resizable=\"true\"><\/textarea>\n<\/label>\n\n<label>\n<input type=\"checkbox\" name=\"urgent\" value=\"Urgent\">\u00a0Urgent &#8211; requires action as soon as possible\n<\/label>\n\n<label>\nIf you&#8217;d like to be contacted\n<input type=\"email\" name=\"email\" placeholder=\"Your email address\">\n<\/label>\n\n<input type=\"hidden\" name=\"feedbackid\" id=\"feedbackid\" value= \"No service specified\" >\n<input type=\"hidden\" name=\"snood\" id=\"snood\" value= \"5\" >\n\n<label>\n<input type=\"submit\" id=\"action\" value=\"Submit\" disabled>\n<div id=\"processMessage\"><\/div>\n<p>(Your contact information and message will be used only for the purposes of handling this issue, and identifying information deleted when done.  See <a href=\"https:\/\/studios.aalto.fi\/privacy-policy\/\">our privacy policy<\/a> for more information.)<\/p>\n<\/label>\n\n<\/form>\n\n\n\n<style>\n\nlabel { display: block; margin-bottom: 1rem; line-height: 1.8 }\n\ntextarea { min-height: 320px; }\n\ntextarea, input[type=\"email\"], input[type=\"submit\"]\n{\n    width: calc(100% - 2rem);\n    font-size: 1.2rem;\n    padding: 0.5rem 0.75rem;\n    -webkit-appearance: none;\n    border: 1px solid var(--aalto-studios-color-low-contrast);\n    background: var(--aaltoStudiosBlocker-button-background);\n    color: var(--aalto-studios-color-high-contrast);\n    border-radius: var(--aalto-studios-card-border-radius);\n    margin-top: 0.5rem;\n}\n\ninput[type=\"submit\"]\n{\n    max-width: 10rem;\n    height: 44px;\n    background: var(--aaltoStudiosBlocker-button-background);\n    color: var(--aalto-studios-color-active);\n}\n\ninput[type=\"submit\"]:disabled\n{\n  color: #999;\n  opacity: 0.5;\n}\n\n#processMessage.success h3\n{\n    margin-top: 1.5rem;\n    color: #3a3;\n}\n\n<\/style>\n<\/div>\n\n\n\n<div class=\"wp-block-column as-default-columns-sidebar is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;flex-basis:33.33%\">\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group aalto-studios-card-empty has-small-font-size has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<h5 class=\"wp-block-heading\">What is Aalto Studios?<\/h5>\n\n\n\n<p>We&#8217;re the media centre for all Aalto University, providing resources and expertise on media production. Learn more by exploring this site.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group aalto-studios-card-empty has-small-font-size has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<h5 class=\"wp-block-heading\">Looking for an expert?<\/h5>\n\n\n\n<p>See our <a href=\"https:\/\/studios.aalto.fi\/contact-us\/\" data-type=\"page\" data-id=\"2964\">contact page<\/a> for a personal connection.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<script>\n\nconst rooms = { 3443 : \"Production office\" }\nconst processMessage = document.querySelector( '#processMessage' )\n\ndocument.addEventListener( \"DOMContentLoaded\", function()\n{\n\n\tprocessIncomingID()\n\tinitSubmitFeedback()\n})\n\nconst processIncomingID = () =>\n{\n    const params = new URLSearchParams( window.location.search )\n    const id = params.get( 'id' )\n    const name = params.get( 'resource' )\n    const feedbackInput = document.querySelector( '#feedbackid' )\n\tconst h1Element = document.querySelector( 'h1' )\n\n    let roomName = ''\n\n\t\/\/ We have an incoming name\n    if ( name )\n    {\n        roomName = decodeURIComponent( name )\n    }\n\n\t\/\/ We have a preferred name for override\n    if ( id && rooms[ id ] )\n    {\n        roomName = rooms[ id ]\n    }\n\n    if ( id && roomName == '' )\n    {\n        feedbackInput.value = id\n\t}\n\t\t\n\tif ( roomName.length > 0 )\n\t{\t\t\n\t\th1Element.textContent += ' for ' + roomName\n\t\t\n\t\tfeedbackInput.value = roomName\n    }\n}\n\nconst initSubmitFeedback = () =>\n{\n\tconst form = document.getElementById( 'feedbackForm' )\n\tconst submitButton = document.querySelector( '#action' )\n\tconst snoodInput = document.querySelector( '#snood' )\n\tconst processMessage = document.getElementById( 'processMessage' )\n\n\tsubmitButton.disabled = true\n\n\tlet loadTime = Date.now()\n\n\tsetTimeout( () =>\n\t{\n\t\tconst currentDay = new Date().getDate()\n\t\n\t\tsubmitButton.disabled = false\n\n\t\t\/\/snoodInput.value = currentDay\n\t\tsnoodInput.value = 5\n\t\t\n\t}, 5000 )\n\n\tform.addEventListener( 'submit', function( event )\n\t{\n\t\tevent.preventDefault()\n\n\t\tsubmitButton.disabled = true\n\t\tsubmitButton.value = 'Processing\u2026'\n\n\t\tconst timeElapsed = Math.floor( ( Date.now() - loadTime ) \/ 1000 )\n\n\t\t\/\/ Prepare form data for submission\n\t\tconst formData = new FormData( form )\n\t\tformData.append( 'sauce', timeElapsed )\n\n\t\tfetch( 'https:\/\/studios.aalto.fi\/process\/feedback.php',\n\t\t{\n\t\t\tmethod: 'POST',\n\t\t\tbody: formData\n\t\t})\n\t\t.then( response =>\n\t\t{\n\t\t\tif ( response.ok )\n\t\t\t{\n\t\t\t\t\/\/ window.scrollTo( 0, 0 )\n\t\t\t\tprocessMessage.innerHTML = '<h3>Thanks<\/h3><p>We received your message.<\/p>'\n\t\t\t\tprocessMessage.classList.add( 'success', 'visible' )\n\t\t\t\tsubmitButton.value = 'Sent'\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Error( 'Network response was not ok.' )\n\t\t\t}\n\t\t})\n\t\t.catch( error =>\n\t\t{\n\t\t\talert( 'There was a problem sending your message. Try again, and contact us directly over email if the issue persists.' )\nconsole.log(error)\n\t\t})\n\t\t.finally( () =>\n\t\t{\n\t\t\t\/\/ Re-enable submit button after a delay\n\t\t\tsetTimeout( () =>\n\t\t\t{\n\t\t\t\tsubmitButton.disabled = false\n\t\t\t\tsubmitButton.value = 'Submit again'\n\t\t\t}, 5000 )\n\t\t})\n\t})\n}\n\n<\/script>\n\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Send us questions, ideas and feedback on spesific places at our facilities.<\/p>\n","protected":false},"author":1,"featured_media":8774,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"wp-custom-template-page-with-no-featured-image","meta":{"_acf_changed":false,"footnotes":""},"tags":[],"facilitycategories":[],"productcategories":[],"class_list":["post-14068","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"mb":[],"mfb_rest_fields":["title"],"_links":{"self":[{"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/pages\/14068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/comments?post=14068"}],"version-history":[{"count":82,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/pages\/14068\/revisions"}],"predecessor-version":[{"id":14284,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/pages\/14068\/revisions\/14284"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/media\/8774"}],"wp:attachment":[{"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/media?parent=14068"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/tags?post=14068"},{"taxonomy":"facilitycategories","embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/facilitycategories?post=14068"},{"taxonomy":"productcategories","embeddable":true,"href":"https:\/\/studios.aalto.fi\/fi\/wp-json\/wp\/v2\/productcategories?post=14068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}