All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bridgedb.uri.ws.server.3.1.4.source-code.selectorsScripts.vm Maven / Gradle / Ivy

The newest version!
		var mitems=new Array(
#foreach( $targetUriPattern in $targetUriPatterns)
    "$targetUriPattern"#if( $foreach.hasNext ),#end
#end);

		function loadAll(){
			list=document.getElementById('pattern');
			list.options.length=mitems.length;
			countAll=document.getElementById('countAll');
			countAll.innerHTML=mitems.length;
			for(var i=0;i 0){
				for(var i=0;i= 0) {
						allowed.push(mitems[i]);
					}
				}
			} else {
				allowed = mitems;
			}

			list.options.length=allowed.length;
			countAll=document.getElementById('countAll');
			countAll.innerHTML=allowed.length;
			for(var i=0;i 10){
                    button.disabled = true;
                    button.value = "Too many parameters"
                } else {
                    button.disabled = false;
                    button.value = "Submit using get"
                }
             }
		}

		function pickAll(){
			list = document.getElementById('pattern');
			for (var i = 0; i < list.options.length; i++) {
			    list.options[i].selected = true;
			}
			count(list);
		}

		function pickNone(){
			list = document.getElementById('pattern');
			for (var i = 0; i < list.options.length; i++) {
			    list.options[i].selected = false;
			}
			count(list);
		}

		var lensDescriptions=new Array();
        #foreach($lens in $lenses)
            lensDescriptions["$lens.toUri($context)"]=["$lens.getDescription()"];
        #end 
 
		function addLensDescriptions(o)
		{
			area =document.getElementById('lensDescriptionArea');
			area.value = lensDescriptions[o.options[o.selectedIndex].value];
		}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy