diff --git a/public/assets/css/componentStyle.css b/public/assets/css/componentStyle.css index b01e560f..18f138d2 100644 --- a/public/assets/css/componentStyle.css +++ b/public/assets/css/componentStyle.css @@ -24,15 +24,19 @@ margin-bottom: 1em; } -.snapshot-generator { - display: block; - height: 1px; - left: 0; - object-fit: contain; - position: fixed; - top: 0; - width: 1px; - z-index: -1; +.claim-name-input-area { + border-bottom: 1px blue solid; + float: left; + margin-bottom: 1em; + font-weight: bold; +} + +#claim-name-input { + border: 0px; +} + +#claim-name-input:focus { + outline: none } /* show routes */ diff --git a/public/assets/js/publishFunctions.js b/public/assets/js/publishFunctions.js index 88e7fc38..07f9e12c 100644 --- a/public/assets/js/publishFunctions.js +++ b/public/assets/js/publishFunctions.js @@ -100,7 +100,7 @@ function previewAndStageFile(selectedFile){ var previewHolder = document.getElementById('asset-preview-holder'); var dropzone = document.getElementById('drop-zone'); var previewReader = new FileReader(); - var nameInput = document.getElementById('publish-name'); + var nameInput = document.getElementById('claim-name-input'); // validate the file's name, type, and size try { validateFile(selectedFile); @@ -129,7 +129,7 @@ function previewAndStageFile(selectedFile){ // Validate the publish submission and then trigger publishing. function publishSelectedImage(event) { event.preventDefault(); - var name = document.getElementById('publish-name').value; + var name = document.getElementById('claim-name-input').value; validateSubmission(stagedFiles, name) .then(function() { uploader.submitFiles(stagedFiles); diff --git a/views/index.handlebars b/views/index.handlebars index 4456fd4c..628386d8 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -19,7 +19,7 @@ var stagedFiles = null; /* socketio-file-upload listeners */ uploader.addEventListener('start', function(event){ - var name = document.getElementById('publish-name').value; + var name = document.getElementById('claim-name-input').value; var license = document.getElementById('publish-license').value; var nsfw = document.getElementById('publish-nsfw').checked; event.file.meta.name = name; @@ -60,7 +60,7 @@ }); //event listener to filter claim name inputs - document.getElementById('publish-name').addEventListener('input', function() { + document.getElementById('claim-name-input').addEventListener('input', function() { var name = this.value; this.value = name.replace(/\s+/g, '-'); }) diff --git a/views/partials/publish.handlebars b/views/partials/publish.handlebars index 84f0deed..fd18d89b 100644 --- a/views/partials/publish.handlebars +++ b/views/partials/publish.handlebars @@ -4,7 +4,7 @@
Drag and drop your file here, or choose your file below.
- ++