Factored selection-prevention into css class and applied to detector div